joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c72c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x55bc98
push eax
mov dword fs:[0], esp
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
mov esi, dword [esp + 0x1c]
push edi
call fcn.0044a1e0
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], bl
mov byte [esi + 0x15], bl
mov byte [esi + 0x16], bl
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
or eax, 0xffffffff
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x18], ecx
lea edi, [esi + 0x34]
mov dword [esi], vtable.Xenesis2::Utility::Interface::xInterface.0
mov byte [esi + 0x28], bl
mov dword [esi + 0x30], ebx
mov eax, ebp
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4c7340
sub eax, ecx
push eax
push ebp
mov ecx, edi
call fcn.004028a0
mov dl, byte [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov al, 1
mov byte [esi + 0x50], al
mov byte [esi + 0x52], al
mov al, byte [esp + 0x34]
mov byte [esi + 0x51], bl
mov byte [esi + 0x54], bl
mov byte [esi + 0x55], al
mov byte [esi + 0x56], bl
mov byte [esi + 0x57], bl
mov byte [esi + 0x58], bl
mov byte [esi + 0x53], dl
pop edi
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x18

Function at 0x4ca104
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
cmp dword [eax], 0x1000001
je 0x4ca11b
push eax
mov ecx, esi
call fcn.004c7470
pop esi
ret 4
mov eax, dword [eax + 4]
sub eax, 0x2a8
je 0x4ca133
dec eax
jne 0x4ca15b
call fcn.004ca170
mov al, 1
pop esi
ret 4
push 1
push 0
push 0
push 0xcf
push 0x87e094
call fcn.004454c0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
call fcn.004ca170
mov al, 1
pop esi
ret 4
Function at 0x4ca514
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x50
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0x51]
xor ebx, ebx
cmp al, bl
je 0x4ca61d
call fcn.004c75b0
cmp byte [eax + 0x8c], bl
jne 0x4ca61d
cmp byte [esi + 0x50], bl
je 0x4ca61d
push edi
call fcn.004c75b0
mov eax, dword [eax + 0x88]
cmp eax, 9
je 0x4ca5bf
cmp eax, 0xd
je 0x4ca57d
cmp eax, 0x1b
jne 0x4ca610
mov eax, dword [esi + 0x18]
mov dword [esp + 0xc], 0x3000004
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edi, [esp + 0xc]
jmp 0x4ca609
cmp byte [esi + 0x28], bl
je 0x4ca59f
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], 0x3000001
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x1c]
jmp 0x4ca609
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x2c], 0x3000002
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
lea edi, [esp + 0x2c]
jmp 0x4ca609
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x4ca5eb
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x3c], 0x3000002
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
lea edi, [esp + 0x3c]
jmp 0x4ca609
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x4c], 0x3000002
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ebx
lea edi, [esp + 0x4c]
mov eax, esi
call fcn.0040aee0
call fcn.004c75b0
mov byte [eax + 0x8c], 1
pop edi
pop esi
pop ebx
add esp, 0x50
ret
Function at 0x4f2730
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x48
mov ecx, dword [esp + 0x4c]
and ecx, 0xff00
xor al, al
cmp ecx, 0xff00
sete cl
mov dl, cl
neg dl
push ebp
push edi
mov byte [esp + 0xa], al
mov byte [esp + 0xb], cl
sbb edx, edx
add edx, 6
mov ebp, edx
xor edi, edi
test ebp, ebp
jle 0x4f28c5
push ebx
push esi
jmp 0x4f2770
mov cl, byte [esp + 0x13]
nop
test cl, cl
je 0x4f2826
mov ecx, dword [0x87b40c]
mov edx, dword [ecx + edi*8 + 0x1a590]
lea eax, [esp + 0x18]
push eax
push edx
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
cmp byte [esp + 0x18], 0xff
jne 0x4f28b6
mov ecx, dword [0x87b40c]
mov edx, dword [ecx + edi*8 + 0x1a598]
lea eax, [esp + 0x28]
push eax
push edx
call fcn.004c7160
mov esi, eax
call fcn.00403210
mov al, byte [esp + 0x28]
xor al, byte [esp + 0x5c]
jne 0x4f28b6
mov edx, dword [0x87b40c]
mov eax, dword [edx + edi*8 + 0x1a590]
push 1
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov edx, dword [0x87b40c]
mov eax, dword [edx + edi*8 + 0x1a598]
push 1
lea ecx, [esp + 0x18]
push ecx
push eax
mov dword [esp + 0x20], ebx
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
inc edi
jmp 0x4f28b1
mov edx, dword [0x87b40c]
mov eax, dword [edx + edi*8 + 0x1a590]
lea ecx, [esp + 0x38]
push ecx
push eax
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
cmp byte [esp + 0x38], 0xff
jne 0x4f2854
inc edi
jmp 0x4f28b6
mov edx, dword [0x87b40c]
mov eax, dword [edx + edi*8 + 0x1a590]
lea ecx, [esp + 0x48]
push ecx
push eax
call fcn.004c7160
mov ebx, 1
mov esi, eax
call fcn.00403210
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x48]
and ecx, 0xff
cmp eax, ecx
jne 0x4f28b6
mov eax, dword [0x87b40c]
mov ecx, dword [eax + edi*8 + 0x1a590]
push ebx
lea edx, [esp + 0x18]
push edx
push ecx
mov dword [esp + 0x20], 0
call fcn.004c7160
mov esi, eax
call fcn.0040ad80
mov byte [esp + 0x12], 1
inc edi
cmp edi, ebp
jl 0x4f276b
mov al, byte [esp + 0x12]
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x48
ret 4
Function at 0x5052e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x55bc86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x134
push esi
push edi
push str.MuteList.txt
push 0x879c58
lea eax, [esp + 0x40]
push 0x579cec
xor edi, edi
push eax
mov dword [esp + 0x48], edi
call fcn.00548ff0
add esp, 0x10
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [0x87b40c]
mov eax, dword [edx + 0x4eea4]
mov esi, dword [eax]
cmp esi, eax
mov dword [esp + 8], esi
je 0x5053e9
push edi
lea eax, [esp + 0x1c]
push 0x579788
push eax
call fcn.00548ff0
mov eax, dword [esi + 0x24]
add esp, 0xc
inc edi
cmp eax, 0x10
jb 0x505365
mov ecx, dword [esi + 0x10]
jmp 0x505368
lea ecx, [esi + 0x10]
push ecx
mov edx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00407c60
push ecx
mov dword [esp + 0x14c], 0
mov eax, esp
mov dword [esp + 0x14], esp
push eax
lea ecx, [esp + 0x24]
call fcn.00407c60
push 0xd9038
push 0x87e094
mov byte [esp + 0x154], 1
call fcn.004454c0
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ecx
mov ecx, eax
call fcn.00407c60
mov dword [esp + 0x150], 0xffffffff
call fcn.0040bef0
add esp, 0xc
lea edx, [esp + 8]
call fcn.0042cce0
mov edx, dword [0x87b40c]
mov esi, dword [esp + 8]
cmp esi, dword [edx + 0x4eea4]
jne 0x505344
mov ecx, dword [esp + 0x13c]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x140
ret
Function at 0x541fd8
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x55b704
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0x11b4]
mov dword [esp + 0x14], 1
call fcn.005471f0
lea ecx, [esi + 0x105c]
mov byte [esp + 0x14], 0
call fcn.00548310
add esi, 0x20
mov dword [esp + 4], esi
mov eax, dword [esi]
mov dword [esp + 0x14], 2
cmp eax, 0xffffffff
je 0x54214f
push ebp
push edi
lea edi, [esi + 0x101c]
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x542044
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
mov eax, 0x5d461c
ja 0x542049
mov eax, 0x878ab4
push eax
xor eax, eax
mov ax, word [esi + 0x102a]
xor ecx, ecx
mov cx, word [esi + 0x1028]
push eax
xor edx, edx
xor eax, eax
mov dx, word [esi + 0x1026]
mov ax, word [esi + 0x1024]
push ecx
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1022]
xor edx, edx
mov dx, word [esi + 0x101e]
xor eax, eax
mov ax, word [edi]
push ecx
push edx
push eax
push 0x5d45c4
lea ebp, [esi + 0x1c]
call fcn.005489c0
add esp, 4
push eax
push ebp
call fcn.00548ff0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x28
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x5420e7
test ecx, ecx
jle 0x542117
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x1030]
add edx, 2
mov dword [esi + 0x1030], edx
add dl, 0x43
xor byte [eax], dl
inc eax
lea edx, [edi + eax]
cmp edx, ecx
jl 0x5420c9
jmp 0x542117
test ecx, ecx
jle 0x542117
mov edi, 0xffffffe4
push ebx
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
mov bl, byte [eax]
add dl, 0x76
xor bl, dl
mov byte [eax], bl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x5420f5
pop ebx
cmp dword [esi + 0x1034], 0x3e7
je 0x542135
lea eax, [esp + 0x10]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi]
push edx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov dword [esi], 0xffffffff
pop ebp
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x543c00
Capabilities:
Check for software breakpoints
Encode data using xor
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.0054d230
push ebx
push esi
mov esi, dword [esp + 0x1014]
cmp dword [esi], 0xffffffff
je 0x543d85
mov eax, dword [esi + 0x1034]
test eax, eax
je 0x543c47
mov ecx, dword [esp + 0x1018]
cmp byte [ecx], 0x21
je 0x543c47
mov ecx, dword [esi + 0x1038]
cmp ecx, eax
ja 0x543d85
inc ecx
mov dword [esi + 0x1038], ecx
lea ebx, [esi + 4]
push ebx
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esp + 0x1018]
lea edx, [esp + 0x101c]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.0054ab03
add esp, 0xc
lea edx, [esi + 0x101c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, fcn.00548ff0
cmp byte [eax], 0xcc
je 0x543d7e
mov ecx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [ecx], 0xcc
je 0x543d7e
xor eax, eax
push ebp
mov ax, word [esi + 0x102a]
lea edx, [esp + 0x14]
push edi
push edx
xor ecx, ecx
push eax
mov cx, word [esi + 0x1028]
xor edx, edx
mov dx, word [esi + 0x1026]
xor eax, eax
mov ax, word [esi + 0x1024]
push ecx
push edx
push eax
push 0x5d4d1c
lea ebp, [esi + 0x1c]
call fcn.005489c0
add esp, 4
push eax
push ebp
call fcn.00548ff0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x1030]
not ecx
dec ecx
test eax, eax
je 0x543d2e
test ecx, ecx
jle 0x543d58
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, 2
mov ebx, dword [esi + 0x1030]
add ebx, edx
mov dword [esi + 0x1030], ebx
add bl, 0x43
xor byte [eax], bl
inc eax
lea ebx, [edi + eax]
cmp ebx, ecx
jl 0x543d0d
mov ebx, dword [esp + 0x10]
jmp 0x543d58
test ecx, ecx
jle 0x543d58
mov edi, 0xffffffe4
mov eax, ebp
sub edi, esi
mov edx, dword [esi + 0x102c]
lea edx, [edx + edx*2 + 1]
mov dword [esi + 0x102c], edx
add dl, 0x76
xor byte [eax], dl
inc eax
lea edx, [eax + edi]
cmp edx, ecx
jl 0x543d3b
lea eax, [esp + 0x14]
push 0
push eax
push ecx
mov ecx, dword [esi]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x1008
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
xor al, al
pop ebx
add esp, 0x1008
ret
Function at 0x543e40
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push ebp
push esi
lea eax, [esp + 8]
push edi
mov ebp, ecx
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push 0x5d4ddc
call fcn.00548a30
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x5d4dc8
mov esi, eax
call fcn.00548a30
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x543ec9
push 0x5d4db0
call fcn.00548a30
add esp, 4
push eax
push esi
call edi
test eax, eax
je 0x543ec9
mov eax, dword [esp + 0x10]
cmp eax, 5
jb 0x543eb6
jne 0x543ecd
cmp dword [esp + 0x14], 1
jae 0x543ecd
pop edi
mov byte [ebp + 0x127c], 1
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x1c], 2
jne 0x543f03
cmp eax, 5
mov byte [0x878a7a], 1
jne 0x543ef7
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x543ef7
mov ecx, dword [0x5d45ac]
lea edx, [ecx + ecx]
mov dword [0x5d45ac], edx
pop edi
pop esi
mov al, 1
pop ebp
add esp, 0x94
ret
pop edi
pop esi
xor al, al
pop ebp
add esp, 0x94
ret
Function at 0x5443d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov al, byte [esi + 0x1c]
test al, al
jne 0x5443de
mov al, 1
pop esi
ret
push edi
push 0x5d4fb8
lea edi, [esi + 0x20]
call fcn.00548a30
push eax
push edi
call fcn.00543c00
mov ecx, dword [esi + 0x11fc]
lea eax, [esi + 0x1228]
push eax
push ecx
call dword [esi + 0x1284]
mov eax, dword [esi + 0x14]
add esp, 0x14
test eax, eax
mov byte [esi + 0x1c], 0
je 0x54441c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esi + 0x1224]
push 0x7d0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x544458
push 0x5d4fa0
call fcn.00548a30
push eax
push edi
call fcn.00543c00
mov eax, dword [esi + 0x1224]
add esp, 0xc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1224]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x1220]
test eax, eax
je 0x544476
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x5d4f8c
mov dword [esi + 0x1280], 0
mov dword [esi + 0x1284], 0
call fcn.00548a30
push eax
push edi
call fcn.00543c00
add esp, 0xc
mov al, 1
pop edi
pop esi
ret

Function at 0x5445a0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x5445eb
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x5445eb
lea edi, [esp + 0x10]
push 0x5d5010
call fcn.00548a30
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x544653
push 0x5d5004
call fcn.00548a30
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x544653
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5d4fe0
call fcn.00548a30
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00543c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x544673
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x544699
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4
Function at 0x5446b0
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x1c]
lea eax, [esp + 0x1c]
push 1
push ecx
mov dword [esp + 0x18], 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
xor edi, edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x5446fb
push edi
push edi
lea edx, [esp + 0x24]
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x5446fb
lea edi, [esp + 0x10]
push 0x5d4e10
call fcn.00548a30
mov ebx, dword [sym.imp.KERNEL32.dll_CreateMutexA]
add esp, 4
push eax
push 0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x544763
push 0x5d4e04
call fcn.00548a30
add esp, 4
push eax
push esi
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x544763
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x5d5040
call fcn.00548a30
add esp, 4
add ebp, 0x20
push eax
push ebp
call fcn.00543c00
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x5447ad
mov eax, dword [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x5447ad
push 0x5d5024
call fcn.00548a30
add ebp, 0x20
push eax
push ebp
call fcn.00543c00
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret 4

Function at 0x5447d0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
mov al, byte [0x878a79]
test al, al
je 0x5447e3
xor eax, eax
mov esp, ebp
pop ebp
ret
mov al, byte [ecx + 0x1269]
mov dword [ebp - 4], 0
test al, al
je 0x54480b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov al, byte fs:[0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x545a50
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x55b73b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x418
push ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
call fcn.00548e90
mov ebx, dword [esp + 0x430]
lea eax, [esp + 8]
push eax
push ebx
lea ecx, [esp + 0x24]
mov dword [esp + 0x430], 0
call fcn.00548ed0
test al, al
jne 0x545af2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov eax, dword [0x878a7c]
test eax, eax
je 0x545af2
push esi
mov esi, dword [esp + 0x420]
call edi
push eax
push esi
push ebx
push 0x5d5740
call fcn.00548a30
mov ecx, dword [0x878a7c]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00543c00
add esp, 0x14
pop esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x5d570c
call fcn.00548a30
add esp, 4
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop edi
pop ebx
test eax, eax
jne 0x545b99
cmp dword [esp + 0xc], 2
jne 0x545b59
mov eax, dword [esp + 0x42c]
lea ecx, [esp + 0x10]
lea edx, [esp + 4]
push ecx
push edx
push 0
push 0
push eax
call fcn.00548a30
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, ecx
je 0x545bc8
mov edx, dword [0x878a7c]
test edx, edx
je 0x545bff
push ecx
push eax
push 0x5d56f4
call fcn.00548a30
add esp, 4
push eax
mov eax, dword [0x878a7c]
add eax, 0x20
push eax
jmp 0x545bf7
mov ecx, dword [0x878a7c]
test ecx, ecx
je 0x545bc4
push eax
push 0x5d56dc
call fcn.00548a30
mov ecx, dword [0x878a7c]
add esp, 4
add ecx, 0x20
push eax
push ecx
call fcn.00543c00
add esp, 0xc
mov eax, dword [esp]
mov ecx, dword [esp + 0x430]
cmp eax, ecx
je 0x545c2a
mov edx, dword [0x878a7c]
test edx, edx
je 0x545bff
push ecx
push eax
push 0x5d56c4
call fcn.00548a30
mov edx, dword [0x878a7c]
add esp, 4
add edx, 0x20
push eax
push edx
call fcn.00543c00
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.00546f70
xor al, al
mov ecx, dword [esp + 0x418]
mov dword fs:[0], ecx
add esp, 0x424
ret
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0xffffffff
call fcn.00546f70
mov ecx, dword [esp + 0x418]
mov al, 1
mov dword fs:[0], ecx
add esp, 0x424
ret
Function at 0x546c90
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x540
push ebx
lea eax, [esp + 0x33c]
push 0x104
xor bl, bl
push eax
push 0
mov byte [esp + 0x13], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea ecx, [esp + 0x13c]
push 0x104
lea edx, [esp + 0x348]
push ecx
push edx
call fcn.0054aff0
add esp, 4
inc eax
push eax
lea eax, [esp + 0x350]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.0054d17a
add esp, 8
test eax, eax
je 0x546cff
mov byte [eax], bl
lea edx, [esp + 8]
push edx
push 3
push 0
push 0x5d59d0
call fcn.00548a30
add esp, 4
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x546e74
push ebp
mov edx, dword [esp + 0xc]
push eax
push eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push eax
push eax
lea eax, [esp + 0x20]
lea ecx, [esp + 0x44]
push eax
push ecx
push 0
push edx
mov dword [esp + 0x30], 0x104
mov ebp, 1
call ebx
cmp eax, 0x103
je 0x546e5c
push esi
push edi
test eax, eax
jne 0x546e2a
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x244]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x5c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x248]
push ecx
call fcn.0054d17a
add esp, 8
test eax, eax
je 0x546da8
mov byte [eax], 0
lea edx, [esp + 0x140]
lea eax, [esp + 0x244]
push edx
push eax
call fcn.0054a41e
add esp, 8
test eax, eax
jne 0x546e2a
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push eax
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x546e2a
mov eax, dword [0x878a7c]
test eax, eax
je 0x546e11
lea edx, [esp + 0x1c]
push edx
push 0x5d59b8
call fcn.00548a30
add esp, 4
push eax
mov eax, dword [0x878a7c]
add eax, 0x20
push eax
call fcn.00543c00
add esp, 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x546e2a
mov byte [esp + 0x13], 1
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push 0
lea edx, [esp + 0x4c]
mov eax, ebp
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x34], 0x104
push eax
inc ebp
call ebx
cmp eax, 0x103
jne 0x546d61
pop edi
pop esi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 0xb]
pop ebp
pop ebx
add esp, 0x540
ret
mov al, bl
pop ebx
add esp, 0x540
ret
Function at 0x546e80
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push ebx
push eax
push 0xf003f
push 0
push 0x5d5a30
xor bl, bl
call fcn.00548a30
add esp, 4
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x546ee1
lea ecx, [esp + 0xc]
push 4
push ecx
push 4
push eax
push 0x5d5a18
call fcn.00548a30
mov edx, dword [esp + 0x18]
add esp, 4
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x546ed6
mov bl, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
pop ecx
ret