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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push str.vncencoder.cpp_:_remote_palette_data_requested_n
push 9
push 0x4f6c50
mov esi, ecx
mov dword [ebp - 0x20], ebx
call fcn.00414f90
add esp, 0xc
cmp byte [esi + 0x13], 0
jne 0x447504
mov ecx, esi
call fcn.00447680
test eax, eax
je 0x4475f6
cmp byte [esi + 0x23], 0
jne 0x4475f6
cmp byte [esi + 0x13], 0
je 0x44760b
push str.vncencoder.cpp_:_generating_BGR233_palette_data_n
push 9
push 0x4f6c50
call fcn.00414f90
mov cl, byte [esi + 0x30]
lea edi, [esi + 0xc]
mov eax, dword [edi]
mov ebx, 1
add esp, 0xc
shl ebx, cl
mov dword [ebp - 0x24], edi
test eax, eax
je 0x44754b
push eax
call fcn.004ae337
add esp, 4
lea eax, [ebx*4]
push eax
call fcn.004ae57a
mov ecx, eax
add esp, 4
mov dword [edi], ecx
test ecx, ecx
je 0x4475da
xor eax, eax
mov dword [ebp - 0x1c], eax
test ebx, ebx
jle 0x4475da
inc ecx
mov dword [ebp - 0x18], ecx
movzx ecx, byte [esi + 0x3c]
movzx edi, word [esi + 0x38]
sar eax, cl
and eax, edi
mov ecx, dword [ebp - 0x18]
imul eax, eax, 0xff
cdq
idiv edi
mov byte [ecx - 1], al
movzx ecx, byte [esi + 0x3a]
movzx edi, word [esi + 0x34]
mov eax, dword [ebp - 0x1c]
sar eax, cl
and eax, edi
mov ecx, dword [ebp - 0x18]
imul eax, eax, 0xff
cdq
idiv edi
mov byte [ecx + 1], al
movzx ecx, byte [esi + 0x3b]
mov eax, dword [ebp - 0x1c]
movzx edi, word [esi + 0x36]
sar eax, cl
and eax, edi
mov ecx, dword [ebp - 0x18]
imul eax, eax, 0xff
cdq
idiv edi
mov byte [ecx], al
add ecx, 4
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jl 0x447570
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x20]
mov eax, dword [edi]
test eax, eax
jne 0x447654
push str.vncencoder.cpp_:_failed_to_obtain_colour_map_data__n
push eax
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret 8
push str.vncencoder.cpp_:_generating_8_bit_palette_data_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
mov dword [ebp - 0x12], 0xff0100
lea eax, [ebp - 0x14]
mov word [ebp - 0x14], 0x1820
lea edi, [esi + 0xc]
mov dword [ebp - 0xe], 0xff00ff
add esi, 0x10
mov word [ebp - 0xa], 0x810
push eax
push esi
push edi
mov byte [ebp - 8], 0
call dword [0x4daa88]
add esp, 0xc
jmp 0x4475dd
mov ecx, dword [ebp + 0xc]
shl ecx, 2
push ecx
push eax
push ebx
call fcn.004b6150
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
mov eax, 1
pop edi
pop esi
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret 8
Function at 0x448a40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], edx
xor esi, esi
xor dh, dh
mov ebx, ecx
cmp eax, 8
je 0x448a72
cmp eax, 0x10
jne 0x448a65
movzx eax, word [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x20
jne 0x448ac3
mov eax, dword [ebx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
xor eax, eax
mov ecx, 0x100
mov edi, 0x552340
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 4]
test edi, edi
jle 0x448ab9
jmp 0x448a90
mov dl, byte [eax + ebx]
movzx ecx, dl
cmp ecx, 0x100
jge 0x448ae1
inc dword [ecx*4 + 0x552340]
mov ecx, dword [ecx*4 + 0x552340]
cmp ecx, esi
jle 0x448ab4
mov esi, ecx
mov dh, dl
inc eax
cmp eax, edi
jl 0x448a90
pop edi
pop esi
movzx eax, dh
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push str.getBgColour:_bpp__d__n
call fcn.004afcf3
add eax, 0x40
push eax
call fcn.004afdcf
add esp, 0xc
push 1
call fcn.004b0280
push ecx
push str.getBgColour
push str._s:_unusual_colour___d_n
call fcn.004afcf3
add eax, 0x40
push eax
call fcn.004afdcf
add esp, 0x10
push 1
call fcn.004b0280
int3
Function at 0x458380
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf011
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x120]
push ecx
push 0
push 0
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x114], eax
push ecx
inc eax
mov dword [ebp - 0x118], 1
push eax
mov dword [ebp - 0x120], 2
mov dword [ebp - 0x11c], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4583fd
xor eax, eax
jmp 0x4584ad
lea eax, [ebp - 0x18c]
mov dword [ebp - method.omni_thread.virtual_0], vtable.omni_thread.0
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 1
sub esp, 8
lea ecx, [ebp - 0x190]
call fcn.004a6b70
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x164], 0
mov dword [ebp - 4], 0
mov dword [ebp - method.vncHTTPConnectThread.virtual_0], vtable.vncHTTPConnectThread.0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x190]
push esi
mov dword [ebp - 0x12c], edi
call fcn.00458750
cmp dword [esi + 8], 0
jl 0x458487
push str.vsocket.cpp_:_shutdown_socket_n
push 0xa
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, esi
call fcn.004726a0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
lea ecx, [ebp - 0x190]
mov dword [ebp - 4], 0xffffffff
call fcn.004a6c20
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x4585e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push str.vnchttpconnect.cpp_:_started_HTTP_server_thread_n
push 9
push 0x4f6c50
mov edi, ecx
call fcn.00414f90
add esp, 0xc
cmp dword [edi + 0x60], 0
jne 0x458730
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea ecx, [ecx]
mov ecx, dword [edi + 0x68]
call fcn.00472850
mov esi, eax
test esi, esi
je 0x45872e
cmp dword [edi + 0x60], 0
jne 0x458726
push str.vnchttpconnect.cpp_:_HTTP_client_connected_n
push 1
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 0xfa
call ebx
cmp byte [0x50149c], 2
jb 0x45868e
push 4
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x3a98
push eax
push 0x1006
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x45868e
push 4
lea eax, [ebp - 4]
push eax
push 0x1005
push 0xffff
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x10]
push 0x1f4
call ebx
cmp dword [esi + 8], 0
jl 0x4586f7
push str.vsocket.cpp_:_shutdown_socket_n
push 0xa
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
cmp dword [esi + 8], 0
jl 0x4586f7
push str.vsocket.cpp_:_closing_socket_n
push 0xa
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
push 2
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0xffffffff
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x458712
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
cmp dword [edi + 0x60], 0
je 0x458610
jmp 0x45872e
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop esi
pop ebx
push str.vnchttpconnect.cpp_:_quitting_HTTP_server_thread_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0xc
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x458e50
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf0cb
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x4f5568]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
lea esi, [edi + 4]
mov dword [edi + 0x23cc], eax
cmp dword [esi + 8], 0
mov dword [ebp + 0xc], 1
jl 0x458e97
mov ecx, esi
call fcn.004726a0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
test eax, eax
js 0x458f55
push 4
lea ecx, [ebp + 0xc]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x458f55
mov ecx, esi
call fcn.00472990
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x168]
push eax
push dword [edi + 0x23cc]
mov ecx, esi
call fcn.00472700
test eax, eax
je 0x458f55
mov eax, dword [esi + 8]
test eax, eax
js 0x458f55
push 5
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x458f55
push 0x6c
call fcn.004ad3ab
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x458f27
mov ecx, eax
call fcn.004584d0
mov ecx, eax
jmp 0x458f29
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x23d0], ecx
test ecx, ecx
je 0x458f55
mov eax, dword [ecx]
push ebx
push esi
call dword [eax + 0xc]
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
xor eax, eax
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 0x458f70
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x458fbc
mov bl, byte [esi]
push ecx
push dword [esi + 4]
movzx eax, bl
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004273d0
push dword [esi]
push str.fake__d_down_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0x18
mov byte [esi + 8], 1
pop esi
pop ebx
pop ecx
ret

Function at 0x458fc0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x459010
mov eax, dword [esi + 4]
mov bl, byte [esi]
or eax, 2
push ecx
push eax
push 0
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004273d0
push dword [esi]
push str.fake__d_up_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0x18
mov byte [esi + 9], 1
pop esi
pop ebx
pop ecx
ret
Function at 0x459020
Capabilities:
Log keystrokes

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
cmp byte [esi + 8], 0
je 0x459064
mov eax, dword [esi + 4]
mov bl, byte [esi]
or eax, 2
push ecx
push eax
push 0
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004273d0
push dword [esi]
push str.fake__d_up_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0x18
pop esi
pop ebx
pop ecx
ret
cmp byte [esi + 9], 0
je 0x45909b
mov bl, byte [esi]
push ecx
push dword [esi + 4]
movzx eax, bl
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004273d0
push dword [esi]
push str.fake__d_down_n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0x18
pop esi
pop ebx
pop ecx
ret
Function at 0x459eb0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov bl, cl
movzx esi, bl
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 1
je 0x459f32
push 0x4e7718
push str.down
push esi
push str.vnckeymap.cpp_:_setshiftstate__d_____s___s__n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0x14
push 2
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dl, al
mov cl, bl
call fcn.004273d0
add esp, 8
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
mov ecx, 0x4e7718
and eax, 1
mov eax, str.down
cmove eax, ecx
push eax
push esi
push str.vnckeymap.cpp_:_new_state__d___s__n
push 9
push 0x4f6c50
call fcn.00414f90
add esp, 0x14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45ba90
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x4f6c68
push esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45baa0
sub ecx, edx
jne 0x45bacc
push str.Error_opening_log_file_n
push ecx
push 0x4f6c50
mov word [0x4f6c58], 0x100
call fcn.00414f90
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x4f6e68], 0
mov byte [0x4f6c58], 1
jne 0x45bb50
mov ecx, 0x4f6c68
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x45bae4
sub ecx, edx
lea eax, [ecx + 5]
push eax
call fcn.004aca50
mov esi, eax
add esp, 4
test esi, esi
je 0x45bb50
mov ecx, 0x4f6c68
mov edx, esi
sub edx, ecx
jmp 0x45bb10
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x45bb10
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45bb20
mov eax, dword [str..bak]
push 1
mov dword [ecx], eax
mov al, byte [0x4e77a8]
push esi
push 0x4f6c68
mov byte [ecx + 4], al
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
call fcn.004ad334
add esp, 4
mov eax, dword [0x4f6c64]
test eax, eax
je 0x45bb6a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4f6c64], 0
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x4f6c68
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4f6c64], eax
cmp eax, 0xffffffff
jne 0x45bbb8
push 0x4f6c68
push str.Error_opening_log_file__s_n
push 0
push 0x4f6c50
mov word [0x4f6c58], 0x100
call fcn.00414f90
mov eax, dword [0x4f6c64]
add esp, 0x10
cmp byte [0x4f6e68], 0
je 0x45bbd3
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x45c740
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov edx, 0x4d9f42
lea ecx, [esi + 0x1100]
mov eax, ecx
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x45c777
test bl, bl
je 0x45c773
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x45c777
add eax, 2
add edx, 2
test bl, bl
jne 0x45c757
xor eax, eax
jmp 0x45c77c
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c89c
mov eax, str.SYSTEM
lea esp, [esp]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x45c7b0
test dl, dl
je 0x45c7ac
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x45c7b0
add ecx, 2
add eax, 2
test dl, dl
jne 0x45c790
xor eax, eax
jmp 0x45c7b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x45c89c
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
jne 0x45c7e7
mov ecx, dword [esi]
inc dword [esi + 0x1228]
mov byte [esi + 0x1224], al
call fcn.0046f390
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x123c], 2
jne 0x45c810
cmp dword [esi + 0x1234], 0
jne 0x45c810
cmp dword [esi + 0x1230], 5
jne 0x45c810
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x170]
test eax, eax
jne 0x45c837
movzx eax, byte [esi + 0x1224]
push eax
push str.vncmenu.cpp_:__Shell_TrayWnd_found__i_n
push 0
push 0x4f6c50
call fcn.00414f90
add esp, 0x10
mov ecx, esi
push 0
push 0
call fcn.0045cb50
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x20]
test eax, eax
je 0x45c89c
call fcn.0045c0c0
test al, al
je 0x45c884
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x1e4]
test eax, eax
je 0x45c85e
call fcn.0041ba40
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x1ec]
test eax, eax
je 0x45c871
call fcn.0041bb30
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x1f4]
test eax, eax
je 0x45c884
call fcn.0041bd00
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x1fc]
test eax, eax
je 0x45c897
call fcn.0045bfa0
call fcn.00461be0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f560
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x108]
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45f5f3
lea eax, [ebp - 0x10c]
push eax
push 0x4fd474
push 0
push 0x20019
push 0
push 0
push 0
push 0x4db788
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x45f5f3
lea eax, [ebp - 0x10c]
push eax
push 0x4fd47c
push 0
push 0x2001f
push 0
push 0
push 0
push str.mslogon
push dword [0x4fd474]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x45f610
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x108]
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45f678
mov eax, dword [0x4fd47c]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x45f65f
push eax
call esi
mov eax, dword [0x4fd26c]
test eax, eax
je 0x45f66b
push eax
call esi
mov eax, dword [0x4fd474]
test eax, eax
je 0x45f677
push eax
call esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x45f690
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4fd47c]
lea ecx, [ebp - 0x108]
push esi
mov esi, edx
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45f738
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 4
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x10c], 4
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x45f725
cmp dword [ebp - 0x110], 4
jne 0x45f725
cmp dword [ebp - 0x10c], 4
mov eax, dword [ebp - 0x114]
je 0x45f74e
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x45f760
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4fd47c]
lea ecx, [ebp - 0x108]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x114], ebx
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45f84c
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x110], 0x100
push eax
push 0
push edi
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
jne 0x45f837
cmp dword [ebp - 0x10c], 3
jne 0x45f837
push 0x100
mov dword [ebp - 0x110], 0x100
call fcn.004aca50
mov esi, eax
add esp, 4
test esi, esi
je 0x45f837
lea eax, [ebp - 0x110]
push eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 0
push edi
push dword [ebp - 0x114]
call ebx
test eax, eax
jne 0x45f82e
cmp dword [ebp - 0x10c], 3
je 0x45f879
push esi
call fcn.004ad334
add esp, 4
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push 0x96
call fcn.004aca50
add esp, 4
mov esi, eax
lea eax, [ebp - 0x108]
push eax
push 0x96
push esi
push 0x4d9f42
push edi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x45f890
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4fd47c]
lea ecx, [ebp - 0x128]
mov esi, edx
call fcn.0041e390
lea eax, [ebp - 0x128]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45f8f8
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push 0x4e1254
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x24]
push eax
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret
Function at 0x45f940
Capabilities:
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4fd47c]
lea ecx, [ebp - 0x108]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45f9ad
push 0xfe
push edi
push 3
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
push eax
push edi
push esi
push str.admin_auth
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x45f9e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x108]
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45fa4f
call fcn.0045f560
cmp dword [0x4fd47c], 0
je 0x45fa3b
push esi
mov edx, str.group1
call fcn.0045f940
add esp, 4
call fcn.0045f610
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push esi
mov edx, str.group1
call fcn.0045f940
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x45fa70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x108]
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45fade
push esi
xor esi, esi
call fcn.0045f560
cmp dword [0x4fd47c], esi
je 0x45fac8
mov edx, str.group1
call fcn.0045f760
mov esi, eax
call fcn.0045f610
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
mov edx, str.group1
call fcn.0045f760
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret

Function at 0x45fb00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea ecx, [ebp - 0x108]
call fcn.0041e390
lea eax, [ebp - 0x108]
push eax
push 0
push str.UseRegistry
push str.admin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
jne 0x45fb6f
call fcn.0045f560
cmp dword [0x4fd47c], 0
je 0x45fb5b
push esi
mov edx, str.group2
call fcn.0045f940
add esp, 4
call fcn.0045f610
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
push esi
mov edx, str.group2
call fcn.0045f940
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop esi
call fcn.004aca59
mov esp, ebp
pop ebp
ret