joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a10
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov bl, byte [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
push 0
mov dword [ebp - 0x24], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x417a8c
push 0
push 0
push dword [ebp - 0x24]
movzx eax, bl
push 0
push 0
push dword [ebp - 0x28]
xor eax, 1
push 1
add eax, 2
push eax
push 0x110
push 0xf01ff
push dword [ebp - 0x2c]
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x417aa1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 0x14
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x40]
mov dword [ebp - 0x1c], 0x7d0
push eax
push 2
push esi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0x7d0
mov dword [ebp - 0x10], 0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x417d60
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
mov dword [ebp - 0x40], ebx
test ebx, ebx
je 0x417dae
cmp byte [ebp + 0xc], 0
je 0x417d97
push 0x14
jmp 0x417d99
push 0x24
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x417dc2
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebp - 0x44]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
cmp byte [ebp + 0xc], 0
je 0x417e03
mov eax, dword [ebp - 0x1c]
cmp eax, 4
je 0x417dfc
cmp eax, 2
je 0x417dfc
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x417edb
mov ebx, 4
jmp 0x417e43
push dword [0x50d018]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov edi, eax
test edi, edi
je 0x417e29
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417e3e
lea eax, [ebp - 0x3c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x417edb
mov ebx, 1
mov eax, dword [ebp + 0x10]
test eax, eax
jns 0x417e9e
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
je 0x417e7b
nop dword [eax + eax]
cmp dword [ebp - 0x1c], ebx
je 0x417e7b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20]
push eax
push esi
call edi
test eax, eax
jne 0x417e60
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push dword [ebp - 0x40]
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 0xc
jle 0x417e7b
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x417e7b
cmp dword [ebp - 0x1c], ebx
je 0x417e7b
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc edi
cmp edi, dword [ebp + 0x10]
jge 0x417ed8
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x417eb1
jmp 0x417e7b
mov ebx, dword [ebp - 0x40]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41a610
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0268
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [0x51ed1c]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41a71e
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xbb8
push esi
call ebx
test eax, eax
je 0x41a674
call edi
jmp 0x41a664
cmp dword [0x51ed1c], 0
je 0x41a70a
mov dword [0x51ed1c], 0
call fcn.00427ce0
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a6b0
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405510
push 0x11
push str.SupportClient.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00405640
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0
push str._RepairRemoteSession
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00404270
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.monitor_return__n
call fcn.00427f40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
Function at 0x41dac0
Capabilities:
Enumerate processes
Enumerate processes on remote desktop session host

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x51ecfc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x134], 0xffffffff
je 0x41dbad
lea eax, [ebp - 0x138]
mov dword [ebp - 0x130], 0
push eax
lea eax, [ebp - 0x130]
push eax
push 1
push 0
push 0
call sub.WTSAPI32.dll_WTSEnumerateProcessesA
test eax, eax
je 0x41dc60
xor edi, edi
cmp dword [ebp - 0x138], edi
jbe 0x41db89
xor ebx, ebx
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x41db31
mov ecx, dword [esi]
mov eax, dword [ebp - 0x130]
push dword [ebx + eax + 8]
push ecx
call fcn.004a4dfc
add esp, 8
test eax, eax
je 0x41db78
inc edi
add ebx, 0x10
cmp edi, dword [ebp - 0x138]
jb 0x41db27
lea eax, [ebp - 0x130]
push eax
call dword [0x51ecfc]
mov eax, dword [ebp - 0x134]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x130]
add edi, edi
mov eax, dword [eax + edi*8]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x130]
push eax
call dword [0x51ecfc]
mov eax, dword [ebp - 0x134]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
push 0x124
xor ebx, ebx
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.0049d330
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x41dbf5
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x41dc10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x41dc1a
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004a4dfc
add esp, 8
test eax, eax
je 0x41dc41
lea eax, [ebp - 0x12c]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41dc10
jmp 0x41dc47
mov ebx, dword [ebp - 0x124]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x41dc60
lea eax, [ebp - 0x134]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x134]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
Function at 0x41f100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e08cb
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0049d330
xorps xmm0, xmm0
mov dword [ebp - 0x47c], 0x44
add esp, 0xc
movlpd qword [ebp - 0x478], xmm0
movlpd qword [ebp - 0x470], xmm0
movlpd qword [ebp - 0x468], xmm0
movlpd qword [ebp - 0x460], xmm0
movlpd qword [ebp - 0x458], xmm0
movlpd qword [ebp - 0x450], xmm0
movlpd qword [ebp - 0x448], xmm0
movlpd qword [ebp - 0x440], xmm0
movups xmmword [ebp - 0x438], xmm0
call fcn.00427ce0
mov edx, eax
mov dword [ebp - 0x418], 0
mov ecx, edx
mov dword [ebp - 0x414], 0xf
mov byte [ebp - 0x428], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f1c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x428]
call fcn.00405510
push 0x26
push str.TerminateProcess.exe_SupportClient.exe
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.00405640
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.004a4c93
add esp, 0xc
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x47c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x41f26c
push 0xbb8
push dword [ebp - 0x438]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x434]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x438]
call esi
mov edx, dword [ebp - 0x414]
cmp edx, 0x10
jb 0x41f2a2
mov ecx, dword [ebp - 0x428]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41f298
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f2bc
push edx
push ecx
call fcn.0042a02e
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
call fcn.004a0469
int3
Function at 0x424b50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea ecx, [ebx + 2]
test ecx, ecx
js 0x424ce3
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 0x40000000
jge 0x424ce3
push esi
mov esi, dword [ebp + 0x10]
shl eax, 2
mov ecx, dword [esi + 0x10]
cmp eax, ecx
ja 0x424ba0
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x424b9a
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x424bac
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040ab80
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x424bb6
mov ecx, dword [esi]
cmp ebx, 2
jle 0x424c41
lea edx, [ebx - 3]
mov eax, 0xaaaaaaab
mul edx
mov ebx, edx
shr ebx, 1
inc ebx
lea eax, [ebx*4]
sub eax, ebx
neg eax
add dword [ebp + 0xc], eax
nop dword [eax]
movzx eax, byte [edi]
shr eax, 2
movzx eax, byte [eax + 0x4e4f00]
mov byte [ecx], al
movzx edx, byte [edi]
movzx eax, byte [edi + 1]
and edx, 3
shr eax, 4
add edx, edx
movzx eax, byte [eax + edx*8 + 0x4e4f00]
mov byte [ecx + 1], al
movzx edx, byte [edi + 1]
movzx eax, byte [edi + 2]
and edx, 0xf
shr eax, 6
movzx eax, byte [eax + edx*4 + 0x4e4f00]
mov byte [ecx + 2], al
movzx eax, byte [edi + 2]
add edi, 3
and eax, 0x3f
movzx eax, byte [eax + 0x4e4f00]
mov byte [ecx + 3], al
add ecx, 4
sub ebx, 1
jne 0x424be0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x424ca7
movzx eax, byte [edi]
shr eax, 2
mov al, byte [eax + 0x4e4f00]
mov byte [ecx], al
lea eax, [ecx + 2]
movzx edx, byte [edi]
and edx, 3
mov dword [ebp + 0xc], eax
shl edx, 4
cmp ebx, 1
jle 0x424c93
movzx eax, byte [edi + 1]
shr eax, 4
movzx eax, byte [eax + edx + 0x4e4f00]
mov byte [ecx + 1], al
movzx eax, byte [edi + 1]
mov ecx, dword [ebp + 0xc]
and eax, 0xf
movzx eax, byte [eax*4 + 0x4e4f00]
mov byte [ecx], al
mov byte [ecx + 1], 0x3d
jmp 0x424ca4
mov al, byte [edx + 0x4e4f00]
mov byte [ecx + 1], al
mov ecx, dword [ebp + 0xc]
mov word [ecx], 0x3d3d
add ecx, 2
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x424cb1
mov eax, dword [esi]
sub ecx, eax
mov eax, dword [esi + 0x10]
cmp ecx, eax
ja 0x424cd0
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x14], 0x10
jb 0x424cc5
mov esi, dword [esi]
mov byte [esi + ecx], 0
mov al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
sub ecx, eax
push 0
push ecx
mov ecx, esi
call fcn.0040ab80
pop esi
pop edi
mov al, 1
pop ebx
pop ebp
ret
pop edi
xor al, al
pop ebx
pop ebp
ret
Function at 0x425430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x425460
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x42549c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x42549c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x425581
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x4254c4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4254f7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004a424c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x425581
cmp eax, 1
jle 0x425554
cmp eax, 3
jne 0x425581
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00418620
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x425571
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004a3d21
add esp, 0x10
cmp edi, eax
jne 0x425581
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x425487
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a04a
mov esp, ebp
pop ebp
ret 4
Function at 0x425df0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x425e14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404d50
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x425e35
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x425e37
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x425ebf
jg 0x425e4a
test esi, esi
je 0x425ebf
test ecx, ecx
jl 0x425e8c
jg 0x425e54
test eax, eax
je 0x425e8c
cmp ebx, ecx
jg 0x425e66
jl 0x425e5e
cmp esi, eax
jae 0x425e66
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0049c830
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x425e92
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x425ebf
jg 0x425e9c
test esi, esi
je 0x425ebf
cmp dword [edi + 0x4c], 0
je 0x425ebf
mov ecx, edi
call fcn.00422f60
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.004a451c
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x425ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x425f04
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404c70
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x425f25
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x425f27
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x425fa4
jg 0x425f3a
test esi, esi
je 0x425fa4
test ecx, ecx
jl 0x425f7e
jg 0x425f44
test eax, eax
je 0x425f7e
cmp edi, ecx
jg 0x425f56
jl 0x425f4e
cmp esi, eax
jae 0x425f56
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.0049c830
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x425f81
mov edx, dword [ebp + 8]
test edi, edi
jl 0x425fa4
jg 0x425f8b
test esi, esi
je 0x425fa4
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x425fa4
push eax
push esi
push 1
push edx
call fcn.004a3d21
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x426a90
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x50d174]
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
mov dword [ebp - 0x14], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x426b02
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]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
Function at 0x427f40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0049d330
add esp, 0xc
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x40e]
push eax
movzx eax, word [ebp - 0x412]
push eax
movzx eax, word [ebp - 0x414]
push eax
call fcn.00427ce0
push eax
push str._sLOG_04d__02d__02d_SupportProxy.log
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00429fd0
lea eax, [ebp - 0x404]
push 0x4e65ac
push eax
call fcn.004a4068
mov esi, eax
add esp, 0x24
test esi, esi
je 0x42804a
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004072e0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004a2465
movzx eax, word [ebp - 0x406]
push eax
movzx eax, word [ebp - 0x408]
push eax
movzx eax, word [ebp - 0x40a]
push eax
movzx eax, word [ebp - 0x40c]
push eax
push str._02u:_02u:_02u._03u:
push esi
call fcn.00429fa0
lea eax, [ebp - 0x404]
add esp, 0x34
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428028
push esi
sub eax, edx
push 1
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004a3d21
push esi
call fcn.004a3a69
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
Function at 0x429690
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e0268
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50d174]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x51ed84]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x51ed34]
cmp eax, dword [ecx + 4]
jg 0x429862
cmp dword [0x50d120], 0
jne 0x429843
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
call fcn.00427ce0
mov edx, eax
mov ecx, edx
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x429710
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00405510
push 0x11
push str.SupportClient.exe
lea ecx, [ebp - 0x28]
call fcn.00405640
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ecx, eax
mov eax, dword [0x50d120]
cmp ecx, eax
ja 0x42976f
cmp dword [0x50d124], 0x10
mov eax, 0x50d110
mov dword [0x50d120], ecx
cmovae eax, dword [0x50d110]
mov byte [eax + ecx], 0
jmp 0x42977e
sub ecx, eax
push 0
push ecx
mov ecx, 0x50d110
call fcn.0040ab80
cmp dword [0x50d124], 0x10
lea eax, [ebp - 0x28]
mov ecx, 0x50d110
cmovae ecx, dword [0x50d110]
cmp dword [ebp - 0x14], 0x10
push ecx
push dword [0x50d120]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
mov eax, 0x50d110
jne 0x4297d1
cmp dword [0x50d124], 0x10
mov dword [0x50d120], 0
cmovae eax, dword [0x50d110]
mov byte [eax], 0
jmp 0x42983b
cmp dword [0x50d124], 0x10
lea ecx, [ebp - 0x30]
push ecx
cmovae eax, dword [0x50d110]
lea ecx, [ebp - 0x2c]
push ecx
push 0x4e5f9c
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x429812
cmp dword [0x50d124], 0x10
mov ecx, 0x50d110
mov dword [0x50d120], eax
cmovae ecx, dword [0x50d110]
mov byte [ecx], al
jmp 0x42983b
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x4e65e8
push 0x50d110
call fcn.004178d0
add esp, 0x18
lea ecx, [ebp - 0x28]
call fcn.00404270
mov eax, 0x50d110
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a04a
mov esp, ebp
pop ebp
ret
push 0x51ed34
call fcn.0042a4b8
add esp, 4
cmp dword [0x51ed34], 0xffffffff
jne 0x4296d9
push 0x4e2cd0
call fcn.0042a303
push 0x51ed34
call fcn.0042a46e
add esp, 8
jmp 0x4296d9