joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b5960
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c070
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4b59a6
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4b59cf
cmp eax, ecx
jbe 0x4b59cf
mov esi, eax
sub esi, ecx
push esi
lea eax, [ebp - 0x10]
push 0x57be54
push eax
call fcn.0045acb0
add esp, 0xc
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4b59fd
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
push dword [edi + 0x24]
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
push dword [0x5d67d8]
push eax
call fcn.0045acb0
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
add esp, 0xc
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push reloc.WS2_32.dll_accept
call fcn.0045aa10
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
test eax, eax
jne 0x4b5aa5
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x4b5aa5
mov ecx, esi
lea eax, [ecx + 2]
mov dword [ebp + 8], eax
jmp 0x4b5a80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b5a80
sub ecx, dword [ebp + 8]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x4b5ab0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4b5ad0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4b5aee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b7f20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b8a0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.0045adc0
xor edx, edx
mov ecx, eax
test ecx, ecx
setne dl
test edx, edx
jne 0x4b7f6c
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push eax
push 1
lea eax, [esi + 0x24]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0050c740
add esp, 0x10
test eax, eax
jne 0x4b7fa9
push str.in_saveResponseXml__Can_not_get_the_next_response_file_path
push 2
call fcn.0051ac70
add esp, 8
jmp 0x4b8031
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.004b1660
add esp, 0xc
test eax, eax
jne 0x4b7fdb
push str.in_saveResponseXml__StringUtils::ByteSafeArrayToUtf8_failed.
push 2
call fcn.0051ac70
add esp, 8
jmp 0x4b8031
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [ebp - 0x14]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b8024
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x18]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10]
push eax
call fcn.0050b0d0
add esp, 4
test esi, esi
je 0x4b8031
push esi
call fcn.00525873
add esp, 4
mov edx, dword [ebp - 0x10]
or esi, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4b8054
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x4b8075
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4b9690
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0
je 0x4b96a7
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push dword [0x5d2e44]
lea ecx, [ebp - 4]
call fcn.0045a3a0
push dword [ebp - 4]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x30], eax
test eax, eax
je 0x4b96ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4b96dd
mov esi, 1
jmp 0x4b96ef
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x30], 0
xor esi, esi
push edi
mov edi, dword [ebp - 4]
or ecx, 0xffffffff
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b970d
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b9b00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, 1
push edi
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0xa28
or ecx, eax
jge 0x4b9b2a
push 0xa28
mov ecx, esi
call fcn.0045b530
push dword [esi]
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x4b9b54
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b9b71
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b9b71
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
pop ebp
ret
push 0x80070057
call fcn.0045a8f0
int3
Function at 0x4b9b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567298
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4b9bc1
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x584adc
lea ecx, [ebp + 8]
call fcn.0045a3a0
push 0x580604
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.004b84c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b9be7
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.00472540
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0xa28
or eax, ecx
jge 0x4b9c25
push 0xa28
mov ecx, esi
call fcn.0045b530
push dword [esi]
push dword [ebp + 8]
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x4b9c55
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b9c9e
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b9c9e
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov word [eax + ecx*2], dx
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4b9c8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0045a8f0
int3
Function at 0x4ba920
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5d6b80]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4ba989
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00525878
mov esp, ebp
pop ebp
ret
Function at 0x4bc280
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cb50
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x10]
xor edi, edi
mov dword [esi], 0
call fcn.0047fbc0
test eax, eax
jne 0x4bc360
push 0x38
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00525ee0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x40
mov dword [ebp - 0x3c], str.open
lea eax, [ecx + 0x5c]
mov dword [ebp - 0x38], eax
lea eax, [ecx + 0x264]
mov dword [ebp - 0x34], eax
lea eax, [ecx + 0x1264]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x146c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4bc344
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x10]
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
lea eax, [edi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5d2c98
lea ecx, [ebp + 0x10]
call fcn.0045a3a0
lea eax, [ebp + 0x10]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x34]
call fcn.004b8180
mov edx, dword [ebp + 0x10]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
mov eax, ebx
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4bc3a3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.004bccd0
test eax, eax
je 0x4bc3e4
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.004bce60
test eax, eax
je 0x4bc3df
lea ecx, [ebp - 0x34]
call fcn.004bcd80
test eax, eax
je 0x4bc3df
mov ecx, dword [ebp + 0xc]
mov edi, 1
mov eax, dword [ebp - 0x24]
mov dword [esi], 0
mov dword [ecx], eax
jmp 0x4bc3e4
mov eax, dword [ebp - 0x1c]
mov dword [esi], eax
push dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00525873
mov eax, dword [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x2c], 0
test eax, eax
je 0x4bc412
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4bc42c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bc5c0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cff8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4bc604
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x584d48
call fcn.004b9b80
mov ebx, dword [ebp - 0x10]
add esp, 8
or ecx, 0xffffffff
test eax, eax
jns 0x4bc63a
xor esi, esi
jmp 0x4bc731
lea eax, [ebx - 0x10]
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
push 0xb
push str.octemp.exe
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00472540
mov edi, dword [ebp - 0x14]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4bc70a
push 0
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4bc70a
lea eax, [ebx - 0x10]
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [ebp + 0xc], eax
push str.oc.exe
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.0047f960
mov esi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
mov byte [ebp - 4], 1
sbb edx, edx
add esi, 0xfffffff0
neg edx
or ecx, 0xffffffff
mov dword [ebp + 0xc], edx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bc70e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0xc]
jmp 0x4bc710
xor esi, esi
jmp 0x4bc710
mov esi, edx
add edi, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bc72e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bc74f
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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 0x4bc770
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0
push 0
push 0x2001f
push 0
push 0
push dword [0x5d2e38]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0045aa10
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x4bc7f2
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x4bc7eb
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc7c2
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x5d2d54]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, 1
jmp 0x4bc7f4
xor esi, esi
test edi, edi
je 0x4bc7ff
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4bc810
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0
push 0
push 0x2001f
push 0
push 0
push dword [0x5d2e3c]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push reloc.WS2_32.dll_accept
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.0045aa10
mov edi, dword [ebp - 0xc]
test eax, eax
jne 0x4bc894
mov eax, dword [ebp + 8]
mov edx, dword [eax]
test edx, edx
je 0x4bc894
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bc862
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [0x5d2e40]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4bc894
lea esi, [eax + 1]
jmp 0x4bc896
xor esi, esi
test edi, edi
je 0x4bc8a1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4bcb40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cbc0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4bcb84
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push str.PlatformVersion
push dword [0x5d6814]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00511e70
add esp, 0x10
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4bcbd0
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [0x5d67d4]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str._sOffers
push eax
call fcn.0045acb0
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 0
push 0x2001f
push 0
push 0
push edi
push reloc.WS2_32.dll_accept
call fcn.0045aa10
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x20]
test eax, eax
jne 0x4bcc6e
xor eax, eax
test esi, esi
setne al
test eax, eax
je 0x4bcc6e
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bcc45
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 1
push 0
push dword [0x5d2e20]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test ebx, ebx
je 0x4bcc79
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [edi - 0x10]
mov byte [ebp - 4], 0
or edi, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4bcc99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x4bccb7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bcd80
Capabilities:
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x20], 0
je 0x4bce4b
cmp dword [esi + 0x24], 0
je 0x4bce4b
push ebx
push 0
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
lea eax, [esi + 0xc]
xorps xmm0, xmm0
push 0x14
movdqu xmmword [eax], xmm0
push eax
mov dword [eax + 0x10], 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
test ebx, ebx
jne 0x4bcde2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Readfile_failed:___d
push 8
call fcn.004e4340
add esp, 0xc
cmp dword [ebp - 4], 0x14
jne 0x4bce38
mov eax, dword [esi + 0x1c]
xor ebx, ebx
push eax
cmp eax, 1
push str.PipeClient:Server_return_status__lu
push 2
sete bl
call fcn.004e4340
push dword [esi + 0x10]
push str.PipeClient:Server_return_PID__lu
push 2
call fcn.004e4340
push dword [esi + 0x14]
push str.PipeClient:Server_return_clientStatus__lu
push 2
call fcn.004e4340
push dword [esi + 0x18]
push str.PipeClient:Server_return_Windows_Error__lu
push 2
call fcn.004e4340
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
push str.The_size_of_read_result_values_does_not_match_the_size_of_PipeServerResponse_struct
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4bce60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 4], ebx
jne 0x4bce82
mov dword [edi + 0x14], 0x12
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
cmp dword [eax], 0x1470
jne 0x4bcf0a
push esi
push 0x1474
mov dword [ebp - 4], 0x1470
call fcn.005243ff
mov esi, eax
lea eax, [ebp - 4]
push 4
push eax
push 4
push esi
call fcn.0052628b
push 0x1470
push dword [ebp + 8]
lea eax, [esi + 4]
push 0x1470
push eax
call fcn.0052628b
add esp, 0x24
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
push 0
push eax
push 0x1474
push esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
test ebx, ebx
je 0x4bceea
xor eax, eax
jmp 0x4bcef0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov dword [edi + 0x18], eax
mov dword [edi + 0x24], ebx
call fcn.00525873
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x14], 0x11
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bdaa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x567298
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4bdae1
mov eax, 0x80070057
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x58597c
lea ecx, [ebp + 8]
call fcn.0045a3a0
push 0x580604
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.004b84c0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bdb07
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 8]
call fcn.00472540
mov esi, dword [ebp + 0xc]
mov ecx, 1
mov eax, dword [esi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0xa28
or eax, ecx
jge 0x4bdb45
push 0xa28
mov ecx, esi
call fcn.0045b530
push dword [esi]
push dword [ebp + 8]
push 0
push 0
push 0x801c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathAndSubDirW]
mov ecx, dword [esi]
mov edi, eax
test ecx, ecx
je 0x4bdb75
push dword [ecx - 8]
push ecx
call fcn.00526d13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4bdbbe
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4bdbbe
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov dword [ebp - 4], 0xffffffff
mov word [eax + ecx*2], dx
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bdbab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0045a8f0
int3
Function at 0x4bdbd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56cd80
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x4bdcc0
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov esi, esp
mov dword [ebp - 4], edi
push eax
call fcn.0045a950
add eax, 0x10
mov dword [esi], eax
mov ecx, esp
mov byte [ebp - 4], 1
push dword [0x5d67d4]
call fcn.0045a3a0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0
push eax
call fcn.00516220
add esp, 0xc
lea ecx, [ebp - 0x28]
push 0x2001f
push dword [ebp - 0x10]
push reloc.WS2_32.dll_accept
call fcn.0045b220
mov ebx, dword [ebp - 0x28]
mov dword [ebp + 8], edi
test eax, eax
jne 0x4bdc98
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 4
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push edi
push dword [eax + 0x48]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4bdc98
cmp dword [ebp - 0x1c], 4
cmove edi, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
or ecx, 0xffffffff
add esi, 0xfffffff0
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bdcb5
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
test ebx, ebx
je 0x4bdcc0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4