joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d063
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x582654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CCASTLEWARMERCENARYLIST.0
mov dword [ebp - 4], 0
mov byte [edi + 0x20], 0
mov dword [edi + 0x1c], vtable.CCHECKBUTTON.0
mov byte [edi + 0x24], 0
mov byte [edi + 0x2c], 0
mov dword [edi + 0x28], vtable.CCHECKBUTTON.0
mov byte [edi + 0x30], 0
mov dword [edi + 0x34], vtable.CBUTTON.0
mov byte [edi + 0x38], 0
mov dword [edi + 0xa4], vtable.CSPINBUTTON.0
mov dword [edi + 0xac], 0
mov dword [edi + 0xb4], 1
mov dword [edi + 0xb0], 0x64
mov dword [edi + 0xb8], 0xc8
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov byte [edi + 0xa8], 0
mov dword [edi + 0xc4], vtable.CSPINBUTTON.0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd4], 1
mov dword [edi + 0xd0], 0x64
mov dword [edi + 0xd8], 0xc8
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov byte [edi + 0xc8], 0
mov dword [edi + 0xe4], vtable.CBUTTON.0
mov byte [edi + 0xe8], 0
lea esi, [edi + 0xec]
mov byte [ebp - 4], 6
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004acb60
mov dword [esi], eax
mov byte [edi + 0x24], 0
mov byte [edi + 0x30], 1
mov dword [edi + 0x3c], 5
mov dword [edi + 0x44], 0xaa
mov dword [edi + 0x40], 0x16
mov dword [edi + 0x48], 0x126
mov dword [edi + 0x50], 1
mov dword [edi + 0x54], 0x10
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x4c], 0xffffffff
mov dword [edi + 0x68], 0xa5
mov dword [edi + 0x6c], 0xf
mov dword [edi + 0x60], 0xa5
mov dword [edi + 0x64], 0x11
mov dword [edi + 0x70], 5
mov dword [edi + 0x78], 0xaa
mov dword [edi + 0x74], 0x16
mov dword [edi + 0x7c], 0x126
mov dword [edi + 0x84], 1
mov dword [edi + 0x88], 0x10
mov dword [edi + 0x8c], 0
mov dword [edi + 0x90], 0
mov dword [edi + 0x80], 0xffffffff
mov dword [edi + 0x9c], 0xa5
mov dword [edi + 0xa0], 0xf
mov dword [edi + 0x94], 0xa5
mov dword [edi + 0x98], 0x11
mov dword [edi + 0xac], 0
mov dword [edi + 0xb4], 0
mov dword [edi + 0xb0], 0
mov dword [edi + 0xb8], 0x64
mov dword [edi + 0xbc], 0
mov dword [edi + 0xc0], 0
mov byte [edi + 0xa8], 0
mov dword [edi + 0xcc], 0
mov dword [edi + 0xd4], 0
mov eax, edi
mov dword [edi + 0xd0], 0
mov dword [edi + 0xd8], 0x64
mov dword [edi + 0xdc], 0
mov dword [edi + 0xe0], 0
mov byte [edi + 0xc8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c1320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x12c
jg case.0x4c134c.7
je 0x4c14b2
add eax, 0xfffffffe
cmp eax, 0xc8
ja case.0x4c134c.7
movzx eax, byte [eax + 0x4c1564]
jmp dword [eax*4 + 0x4c14c4]
mov eax, 0x33
pop ebp
ret 4
mov eax, 0x34
pop ebp
ret 4
mov eax, 0x35
pop ebp
ret 4
mov eax, 0x36
pop ebp
ret 4
mov eax, 0x37
pop ebp
ret 4
mov eax, 0x38
pop ebp
ret 4
mov eax, 0x39
pop ebp
ret 4
mov eax, 0x3a
pop ebp
ret 4
mov eax, 0x3b
pop ebp
ret 4
mov eax, 0x3c
pop ebp
ret 4
mov eax, 0x3d
pop ebp
ret 4
mov eax, 0x3e
pop ebp
ret 4
mov eax, 0x3f
pop ebp
ret 4
mov eax, 0x40
pop ebp
ret 4
mov eax, 0x41
pop ebp
ret 4
mov eax, 0x42
pop ebp
ret 4
mov eax, 0x43
pop ebp
ret 4
mov eax, 0x44
pop ebp
ret 4
mov eax, 0x45
pop ebp
ret 4
mov eax, 0x46
pop ebp
ret 4
mov eax, 0x47
pop ebp
ret 4
mov eax, 0x48
pop ebp
ret 4
mov eax, 0x49
pop ebp
ret 4
mov eax, 0x4a
pop ebp
ret 4
mov eax, 0x4b
pop ebp
ret 4
mov eax, 0x4c
pop ebp
ret 4
mov eax, 0x4d
pop ebp
ret 4
mov eax, 0x4e
pop ebp
ret 4
mov eax, 0x4f
pop ebp
ret 4
mov eax, 0x50
pop ebp
ret 4
mov eax, 0x59
pop ebp
ret 4
mov eax, 0x51
pop ebp
ret 4
mov eax, 0x52
pop ebp
ret 4
mov eax, 0x53
pop ebp
ret 4
mov eax, 0x54
pop ebp
ret 4
mov eax, 0x55
pop ebp
ret 4
mov eax, 0x56
pop ebp
ret 4
mov eax, 0x5a
pop ebp
ret 4
mov eax, 0x5b
pop ebp
ret 4
mov eax, 0x58
pop ebp
ret 4
mov eax, 0x57
pop ebp
ret 4
Function at 0x4c3f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x6e207c]
push esi
mov esi, ecx
push edi
cmp al, 1
jne 0x4c4105
cmp byte [0x6e207e], 0
jne 0x4c4127
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.0048d220
test eax, eax
je case.0x4c3fbb.4
movzx eax, byte [edi + 0x972]
dec eax
cmp eax, 0x28
ja case.0x4c3fbb.4
movzx eax, byte [eax + 0x4c4160]
jmp dword [eax*4 + 0x4c4134]
push 0x1f7
mov ecx, esi
call fcn.00470c40
cmp byte [esi + 0x3090c], 0
je 0x4c4112
push 0x26
mov byte [esi + 0x3090c], 0
call fcn.004b0f30
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0
push 0x45
call fcn.004b1240
add esp, 0x10
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
mov byte [esi + 0xbcf], 0x1a
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
mov byte [esi + 0xbcf], 0x1b
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
mov byte [esi + 0xbcf], 0x4e
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
cmp byte [esi + 0xb3e], 0
setne al
add al, 0x21
mov byte [esi + 0xbcf], al
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
mov byte [esi + 0xbcf], 0x44
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
push 0
push 1
mov ecx, esi
call fcn.00430150
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
mov byte [esi + 0xbcf], 0x1d
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
mov byte [esi + 0xbcf], 0x1e
jmp 0x4c4112
push 0x1f7
mov ecx, esi
call fcn.00470c40
cmp dword [0x6dea28], 0x10
mov eax, 0x6dea14
push 3
cmovae eax, dword [0x6dea14]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4c4112
mov al, byte [0x6e207c]
cmp al, 2
jne 0x4c4127
cmp byte [0x6e207e], 0
jne 0x4c4127
mov byte [0x6e207c], 0
mov byte [0x6e207d], 0
mov byte [0x6e207e], 0
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x4d1fd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 0xc
push 1
push eax
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4d201c
push esi
push esi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
lea ecx, [ebp - 0x24]
cmove ecx, esi
mov esi, ecx
push 0x57c014
call fcn.004d9ef0
add esp, 4
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x4d2067
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
cmp eax, 0xb7
jne 0x4d2061
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret

Function at 0x4d2080
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 0xc
push 1
push eax
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4d20cc
push esi
push esi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
lea ecx, [ebp - 0x24]
cmove ecx, esi
mov esi, ecx
push 0x57c014
call fcn.004d9ef0
add esp, 4
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
pop esi
test eax, eax
jne 0x4d20fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4d21a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54e66b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x414]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x424], esi
mov dword [ebp - 0x42c], 4
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x418], 1
call fcn.004dbe40
lea eax, [ebp - 0x418]
mov dword [ebp - 4], 0
push eax
push ebx
lea ecx, [ebp - 0x414]
call fcn.004dbed0
test al, al
jne 0x4d2260
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x6df6a4], 0
je 0x4d2260
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebx
push 0x57d614
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
mov esi, dword [ebp - 0x424]
add esp, 0x14
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x57d634
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d22f7
cmp dword [ebp - 0x428], 2
jne 0x4d22c9
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push esi
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 0x420]
cmp eax, ecx
je 0x4d2326
cmp dword [0x6df6a4], 0
je 0x4d2357
push ecx
push eax
push 0x57d668
jmp 0x4d233d
cmp dword [0x6df6a4], 0
je 0x4d2320
push eax
push 0x57d680
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
je 0x4d235b
cmp dword [0x6df6a4], 0
je 0x4d2357
push ecx
push eax
push 0x57d698
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0x10
xor bl, bl
jmp 0x4d235d
mov bl, 1
lea ecx, [ebp - 0x414]
call fcn.00429420
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret
Function at 0x4d2390
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push 1
push eax
mov dword [ebp - 0x28], 0xc
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4d23e0
push edi
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
lea ecx, [ebp - 0x28]
cmove ecx, edi
mov edi, ecx
push 0x57c544
call fcn.004d9ef0
add esp, 4
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4d2455
push 0x57c558
call fcn.004d9ef0
add esp, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4d2455
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x57d078
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4d24a8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d24a8
push 0x57d09c
call fcn.004d9ef0
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret 4

Function at 0x4d2710
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x57dabc
mov dword [ebp - 4], 0
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4d27cb
cmp dword [ebp - 0xc], 2
jne 0x4d27c2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x57daf0
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 4], 1
jbe 0x4d27c2
push dword [ebp + 8]
push 1
call fcn.004d8c60
add esp, 8
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push dword [ebp - 0x10]
push eax
push 4
push 0
push 0x57dafc
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4d3080
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x582654]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push 1
push eax
mov dword [ebp - 0x28], 0xc
xor edi, edi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x4d30d0
push edi
push edi
push 1
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
lea ecx, [ebp - 0x28]
cmove ecx, edi
mov edi, ecx
push 0x57c564
call fcn.004d9ef0
add esp, 4
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4d3145
push 0x57c578
call fcn.004d9ef0
add esp, 4
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4d3145
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
call esi
push eax
push 0x57d054
call fcn.004d9ef0
add esp, 4
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4d3169
cmp dword [ebp + 0xc], 0
je 0x4d3184
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d318b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0052388c
mov esp, ebp
pop ebp
ret 8
Function at 0x4d3800
Capabilities:
Clear file content
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0xffffffff
jne 0x4d3813
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea edi, [esi + 0x1020]
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [esi + 0x1440]
test eax, eax
je 0x4d3839
cmp dword [esi + 0x1444], eax
mov eax, 0x57c0b4
ja 0x4d383e
mov eax, 0x57c0b7
push eax
movzx eax, word [esi + 0x102e]
lea ebx, [esi + 0x20]
push eax
movzx eax, word [esi + 0x102c]
push eax
movzx eax, word [esi + 0x102a]
push eax
movzx eax, word [esi + 0x1028]
push eax
movzx eax, word [esi + 0x1026]
push eax
movzx eax, word [esi + 0x1022]
push eax
movzx eax, word [edi]
push eax
push 0x57c0b8
call fcn.004da340
add esp, 4
push eax
push ebx
call fcn.0041f000
mov edi, ebx
add esp, 0x28
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4d3892
sub edi, ecx
cmp dword [esi + 0x143c], 0
je 0x4d38cc
test edi, edi
jle 0x4d38de
mov ecx, ebx
mov edx, edi
nop dword [eax]
add dword [esi + 0x143c], 2
lea ecx, [ecx + 1]
mov eax, dword [esi + 0x143c]
add al, 0x43
xor byte [ecx - 1], al
sub edx, 1
jne 0x4d38b0
jmp 0x4d38de
push ebx
push ebx
lea eax, [esi + 0x1034]
push edi
push eax
call fcn.004dc2d0
add esp, 0x10
cmp dword [esi + 0x1440], 0x3e7
je 0x4d38fa
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov dword [esi], 0xffffffff
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4d3af0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x20], 0
je 0x4d3bcb
push edi
push 0x57d000
lea edi, [esi + 0x24]
call fcn.004d9ef0
push eax
push edi
call fcn.004d93e0
lea eax, [esi + 0x1494]
push eax
push dword [esi + 0x146c]
mov eax, dword [esi + 0x3d88]
call eax
mov eax, dword [esi + 0x14]
add esp, 0x14
mov byte [esi + 0x20], 0
test eax, eax
je 0x4d3b3c
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x3d68]
test eax, eax
je 0x4d3b91
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d3b7b
push 0x57d014
call fcn.004d9ef0
push eax
push edi
call fcn.004d93e0
add esp, 0xc
push 0
push dword [esi + 0x3d68]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x3d68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3d68], 0
mov eax, dword [esi + 0x3d64]
test eax, eax
je 0x4d3ba2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x57d02c
mov dword [esi + 0x3d84], 0
mov dword [esi + 0x3d88], 0
call fcn.004d9ef0
push eax
push edi
call fcn.004d93e0
add esp, 0xc
pop edi
mov al, 1
pop esi
ret
Function at 0x4d40c0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x57c184
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4d417d
push esi
push 0x57c1c0
call fcn.004d9ef0
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 4
push eax
push dword [ebp - 4]
call esi
push 0x57c1cc
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
push 0x57c1d8
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
push 0x57c1e4
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
push 0x57c1f0
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
push 0x57c1fc
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
push 0x57c20c
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call esi
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret

Function at 0x4d4190
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [ebp - 4]
xor bl, bl
push eax
push 0xf003f
push 0
push 0x57d968
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4d41f6
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x57d9b0
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d4340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0x57c184
mov edi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 4
mov dword [ebp - 4], 4
call fcn.004d9ef0
add esp, 4
push eax
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4d4472
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x57c21c
call fcn.004d9ef0
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 4
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4d4472
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x57c228
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4d4472
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x57c234
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x4d4472
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x57c240
call fcn.004d9ef0
add esp, 4
push eax
push dword [ebp - 0xc]
call esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
lea esi, [edi + 0x24]
push 0x57c24c
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
add esp, 0xc
push dword [ebp - 0x14]
push 0x57c260
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
add esp, 0xc
push dword [ebp - 0x18]
push 0x57c274
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
add esp, 0xc
push dword [ebp - 0x1c]
push 0x57c288
call fcn.004d9ef0
add esp, 4
push eax
push esi
call fcn.004d93e0
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d44f0
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x16a0], eax
test eax, eax
jne 0x4d4531
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x57dca0
call fcn.004d9ef0
add esp, 4
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004d93e0
add esp, 0xc
jmp 0x4d45e6
push ebx
push edi
push 0x6df370
push 0
push esi
push 0x4d3320
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
test edi, edi
jne 0x4d4579
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x57dcd4
call fcn.004d9ef0
add esp, 4
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004d93e0
add esp, 0xc
jmp 0x4d45d2
push dword [0x6df370]
push edi
push 0x57dd00
call fcn.004d9ef0
add esp, 4
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004d93e0
imul eax, dword [0x57fa30], 0x3e8
add esp, 0x10
push eax
push dword [esi + 0x16a0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d45cf
push 0x57c50c
call fcn.004d9ef0
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004d93e0
add esp, 0xc
push edi
call ebx
push dword [esi + 0x16a0]
call ebx
pop edi
mov dword [esi + 0x16a0], 0
pop ebx
cmp dword [0x6df6a4], 0
pop esi
je 0x4d460c
push 0x57dd20
call fcn.004d9ef0
push eax
mov eax, dword [0x6df6a4]
add eax, 0x24
push eax
call fcn.004d93e0
add esp, 0xc
ret