joyce8/EMBER2024-capa huggingface dataset:
Function at 0x548700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
xor bl, bl
mov dword [ebp - 4], ecx
test ecx, ecx
je 0x548848
mov edx, dword [ecx + 4]
cmp edx, 1
jbe 0x548848
push esi
mov esi, dword [ecx]
cmp word [esi + 2], 0x3a
jne 0x548840
cmp edx, 2
jbe 0x548840
cmp word [esi + 4], 0x5c
jne 0x548840
mov edx, 3
push edi
mov dword [ebp - 8], edx
nop dword [eax + eax]
xor edi, edi
or esi, 0xffffffff
test edx, edx
mov eax, edx
mov edx, dword [ecx]
cmovs eax, edi
test edx, edx
je 0x548810
mov ebx, dword [ecx + 4]
test ebx, ebx
je 0x548810
cmp eax, ebx
jae 0x548810
lea edx, [edx + eax*2]
nop dword [eax]
mov edi, eax
cmp esi, 0xffffffff
jne 0x54879f
movzx ecx, word [edx]
inc eax
add edx, 2
mov esi, edi
cmp ecx, 0x5c
mov ecx, 0xffffffff
cmovne esi, ecx
cmp eax, ebx
jb 0x548780
mov ecx, dword [ebp - 4]
cmp esi, 0xffffffff
je 0x548810
push esi
push 0
call fcn.005469d0
mov ecx, dword [ebp - 4]
mov edi, eax
mov edx, dword [ebp - 8]
test edi, edi
je 0x548750
mov ecx, edi
call fcn.00546d80
mov ebx, eax
test ebx, ebx
je 0x5487dc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push ebx
call fcn.0056f898
add esp, 8
mov eax, dword [edi]
test eax, eax
je 0x5487f3
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
mov ecx, dword [ebp - 4]
lea edx, [esi + 1]
add esp, 8
jmp 0x548748
mov eax, dword [ebp - 8]
pop edi
cmp eax, dword [ecx + 4]
jge 0x548838
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x548838
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push esi
call fcn.0056f898
add esp, 8
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x548850
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7ab8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov byte [ebp - 0xd], 0
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov ebx, eax
call fcn.0056f898
add esp, 8
cmp ebx, 0xffffffff
jne 0x54893d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jb 0x5488b4
cmp esi, 3
jbe 0x548929
push 0x98
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x4b
call fcn.0056f8a6
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push str.DoesFolderExist_INVALID_FILE_ATTRIBUTES_and_GetLastError_returned__I_for__s
inc ecx
mov dword [ebp - 0x1c], eax
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00585d85
mov ecx, dword [ebp - 0x18]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x18], ecx
push edi
push esi
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], edx
push eax
push 0x5c
push str.OFileManager::doesFolderExist
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcofilemanager.cpp
push edx
call fcn.00550890
mov eax, dword [ebp - 0x1c]
add esp, 0x34
test eax, eax
je 0x548929
push 2
push eax
call fcn.0056f898
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 0xd]
test bl, 0x10
mov ecx, 1
cmovne eax, ecx
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 0x548960
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
call fcn.00546d80
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 2
push esi
mov edi, eax
call fcn.0056f898
add esp, 8
cmp edi, 0xffffffff
setne al
pop edi
pop esi
ret
Function at 0x548fc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7cba
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x63b404]
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
test ecx, ecx
je 0x5491e3
call fcn.00545a50
mov dword [ebp - 0x42c], eax
test eax, eax
je 0x5491e5
xor ebx, ebx
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x54904e
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.00545630
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x420]
xor edi, edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x549094
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x424], eax
lea ecx, [ebp - 0x420]
mov dword [ebp - 4], 0x1b
push ecx
mov ecx, eax
call fcn.00545630
mov edi, eax
mov dword [ebp - 4], 0xffffffff
push 0x14
mov dword [ebp - 0x430], 0
mov esi, 9
call fcn.0056f8a6
add esp, 4
mov dword [ebp - 0x428], eax
push 0xffffffffffffffff
push str._DESKTOP_
push 0xa
push eax
lea eax, [ebp - 0x430]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x424], esi
mov ecx, dword [ebp - 0x42c]
lea eax, [ebp - 0x428]
push ebx
push eax
mov dword [ebp - 4], 0x20
call fcn.00547200
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x54910f
push 2
push eax
call fcn.0056f898
add esp, 8
push 0xe
mov dword [ebp - 0x424], 0
mov esi, 6
call fcn.0056f8a6
add esp, 4
mov dword [ebp - 0x434], eax
push 0xffffffffffffffff
push str._TEMP_
push 7
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x430], esi
mov esi, dword [ebp - 0x42c]
lea eax, [ebp - 0x434]
push edi
push eax
mov ecx, esi
mov dword [ebp - 4], 0x21
call fcn.00547200
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x549185
push 2
push eax
call fcn.0056f898
add esp, 8
test ebx, ebx
je 0x5491b2
mov eax, dword [ebx]
test eax, eax
je 0x5491a0
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebx], 0
push 8
push ebx
mov dword [ebx + 4], 0
call fcn.0056f898
add esp, 8
test edi, edi
je 0x5491df
mov eax, dword [edi]
test eax, eax
je 0x5491cd
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [edi], 0
push 8
push edi
mov dword [edi + 4], 0
call fcn.0056f898
add esp, 8
mov eax, esi
jmp 0x5491e5
xor eax, eax
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.0056f3c2
mov esp, ebp
pop ebp
ret

Function at 0x5493a0
Capabilities:
Delete file

Disassembly:
push ebx
xor bl, bl
test ecx, ecx
je 0x5493cc
push esi
call fcn.00546d80
mov esi, eax
test esi, esi
je 0x5493c7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
push esi
mov bl, al
call fcn.0056f898
add esp, 8
pop esi
mov al, bl
pop ebx
ret
mov al, bl
pop ebx
ret
Function at 0x5493d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor al, al
test esi, esi
je 0x54948e
push edi
call fcn.00546d80
push 0x208
mov edi, eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00574370
mov eax, dword [esi + 4]
add eax, eax
push eax
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00573870
add esp, 0x18
test edi, edi
je 0x549430
push 2
push edi
call fcn.0056f898
add esp, 8
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x224], eax
xorps xmm0, xmm0
mov eax, 0x614
mov dword [ebp - 0x220], 0
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x22c]
push eax
movlpd qword [ebp - 0x21a], xmm0
mov dword [ebp - 0x212], 0
mov dword [ebp - 0x228], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret

Function at 0x5494a0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7d0d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
test edi, edi
je 0x5495d5
call fcn.00548850
test al, al
je 0x5495d5
push 8
call fcn.0056f5ce
mov esi, eax
lea ecx, [ebp - 0x26c]
add esp, 4
mov dword [ebp - 0x270], esi
mov dword [esi], 0
push edi
mov dword [esi + 4], 0
call fcn.005456c0
push 0x5c
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0
call fcn.00547460
test al, al
jne 0x549531
push 0x5c
call fcn.00546290
lea ecx, [ebp - 0x26c]
test ebx, ebx
je 0x549543
push ebx
call fcn.00546600
jmp 0x54954a
push 0x2a
call fcn.00546290
lea ecx, [ebp - 0x26c]
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x5495c6
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5495bb
push 8
call fcn.0056f5ce
add esp, 4
mov dword [ebp - 0x270], eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00545630
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 0
call fcn.00545290
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5495bb
cmp dword [esi + 4], 0x3e8
jb 0x549570
push 2
push edi
call fcn.0056f898
add esp, 8
lea ecx, [ebp - 0x26c]
call fcn.00500b70
mov eax, esi
jmp 0x5495d7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret
Function at 0x549600
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7d48
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor bl, bl
test ecx, ecx
je 0x5496de
mov eax, dword [ebp + 8]
or eax, dword [ebp + 0xc]
je 0x5496de
call fcn.00546d80
mov edi, eax
test edi, edi
je 0x5496de
push 0
push 0x80
push 1
push 0
push 0
push 0x120116
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x549694
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x54968b
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x5496d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CreateFile_failed_with_error_code:__d
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.005455a0
push esi
push eax
push 0x45a
push str.OFileManager::createEmptyFile
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcofilemanager.cpp
push 0
mov dword [ebp - 4], 0
call fcn.00550890
add esp, 0x18
lea ecx, [ebp - 0x14]
call fcn.00500b70
push 2
push edi
call fcn.0056f898
add esp, 8
mov al, bl
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 0x54b970
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x38]
mov bl, byte [esi + 0x44]
test eax, eax
jne 0x54b98c
mov eax, dword [esi + 0x90]
test eax, eax
je 0x54b9b4
lea ecx, [ebp - 4]
mov byte [esi + 0x44], 0
push ecx
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x54b9e7
cmp dword [ebp - 4], 0x103
je 0x54b9e7
xor bl, bl
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x20], 0x20
jle 0x54b9aa
cmp dword [esi + 0x48], 0
jne 0x54b9d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x48], eax
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x48]
xor ecx, ecx
cmp eax, 0x7530
movzx ebx, bl
cmova ebx, ecx
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x54b9f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x648bf0]
push edi
mov edi, dword [eax + 0x38]
test edi, edi
jne 0x54ba0b
mov edi, dword [eax + 0x90]
test edi, edi
je 0x54ba40
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
xor esi, esi
push esi
push edi
call ebx
test eax, eax
jne 0x54ba37
nop dword [eax]
inc esi
cmp esi, 0xa
jg 0x54ba37
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call ebx
test eax, eax
je 0x54ba20
pop esi
pop ebx
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x54c7d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 1
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x54c800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x54c830
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 4
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x54c860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
lea eax, [ebp + 8]
push 8
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x54c890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x54d330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b3198
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor bl, bl
cmp dword [edi], 0
je 0x54d411
mov ecx, dword [ebp + 8]
call fcn.00546d80
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], eax
push ecx
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x54d406
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x54d396
cmp eax, 2
jne 0x54d406
mov eax, dword [ebp + 8]
mov bl, 1
add eax, 2
push eax
call fcn.0056f8a6
mov esi, eax
add esp, 4
test esi, esi
je 0x54d404
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp - 0x14]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x54d406
mov eax, dword [ebp + 8]
cmp word [esi + eax - 2], 0
je 0x54d3d8
xor ecx, ecx
mov word [esi + eax], cx
push esi
lea ecx, [ebp - 0x1c]
call fcn.00545630
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], 0
call fcn.005457b0
lea ecx, [ebp - 0x1c]
call fcn.00500b70
push esi
call fcn.0056fc1b
add esp, 4
jmp 0x54d406
xor bl, bl
push dword [ebp - 0x14]
call fcn.0056fc1b
add esp, 4
mov al, bl
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 0x54d430
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, ecx
xor cl, cl
mov dword [ebp - 4], eax
cmp dword [eax], 0
je 0x54d494
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
call fcn.00546d80
mov esi, dword [ebp + 0xc]
mov ebx, eax
mov ecx, esi
call fcn.00546d80
mov edi, eax
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
mov eax, dword [ebp - 4]
push edi
push 1
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.0056fc1b
push edi
call fcn.0056fc1b
add esp, 8
test esi, esi
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, cl
mov esp, ebp
pop ebp
ret 8
Function at 0x54d810
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b83f7
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x63b404]
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
mov edi, dword [ebp + 8]
xor bl, bl
cmp dword [ecx + 4], 0
je 0x54d9dd
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
push 0x20119
lea edx, [ebp - 0x224]
mov dword [ebp - 4], 0
call fcn.0054db00
add esp, 4
mov dword [ebp - 0x214], eax
test eax, eax
je 0x54d961
lea ecx, [ebp - 0x224]
call fcn.00546d80
mov esi, eax
push esi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
mov dword [ebp - 0x214], eax
call fcn.0056fc1b
mov eax, dword [ebp - 0x214]
add esp, 4
test eax, eax
sete bl
test eax, eax
je 0x54d9ce
test edi, edi
je 0x54d9ce
push 0
push 0x100
lea ecx, [ebp - 0x210]
push ecx
push 0
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x54d91d
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00545630
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00546210
lea ecx, [ebp - 0x21c]
call fcn.00500b70
jmp 0x54d9ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.FormatMessage_failed_with_error_code:__d
lea ecx, [ebp - 0x21c]
mov esi, eax
call fcn.005455a0
push esi
push eax
push 0x305
push str.ORegistry::DeleteKey
push str.d:jenkinsworkspaceclient3.lib.platformlibplatformlib_srcoregistry.cpp
push 0
mov byte [ebp - 4], 2
call fcn.00550890
add esp, 0x18
lea ecx, [ebp - 0x21c]
call fcn.00500b70
jmp 0x54d9ce
test edi, edi
je 0x54d9ce
push 0x34
mov dword [ebp - 0x214], 0
mov esi, 0x19
call fcn.0056f8a6
push 0xffffffffffffffff
push str.The_registry_root_is_NULL
push 0x1a
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 3
push eax
mov ecx, edi
call fcn.00546210
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x54d9ce
push 2
push eax
call fcn.0056f898
add esp, 8
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x54da4d
push 2
push ecx
jmp 0x54da45
test edi, edi
je 0x54da4d
push 0x36
mov dword [ebp - 0x214], 0
mov esi, 0x1a
call fcn.0056f8a6
push 0xffffffffffffffff
push str.The_registry_path_is_empty
push 0x1b
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x214]
push eax
call fcn.00585d85
xor ecx, ecx
add esp, 0x18
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x218], esi
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 4
push eax
mov ecx, edi
call fcn.00546210
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x54da4d
push 2
push eax
call fcn.0056f898
add esp, 8
mov al, bl
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.0056f3c2
mov esp, ebp
pop ebp
ret
Function at 0x54e100
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x63b404]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x80
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], 0
push eax
push str.Client_SID
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x54e172
lea eax, [ebp - 0x108]
or esi, 0x20006
push eax
push esi
push 0
lea eax, [ebp - 0x104]
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x108]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, reloc.WS2_32.dll_accept
xor ecx, ebp
pop esi
call fcn.0056f3c2
mov esp, ebp
pop ebp
ret
Function at 0x54e540
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b85d8
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x63b404]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
push 0x20119
lea edx, [ebp - 0x3c]
mov dword [ebp - 4], 0
call fcn.0054db00
add esp, 4
test eax, eax
jne 0x54e59a
xor bl, bl
jmp 0x54e752
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x28], 0x20119
call fcn.0054da70
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
call fcn.0054dfd0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
test al, al
jne 0x54e5ed
xor bl, bl
jmp 0x54e6e5
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x20119
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x2c]
call fcn.0054d160
test al, al
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x1c]
je 0x54e623
push 1
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0054cd90
jmp 0x54e62d
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0054cfd0
push eax
lea ecx, [ebp - 0x24]
call fcn.0054ca00
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x54e66a
cmp eax, 0x80000000
je 0x54e66a
cmp eax, 0x80000005
je 0x54e66a
cmp eax, reloc.WS2_32.dll_accept
je 0x54e66a
cmp eax, reloc.WS2_32.dll_bind
je 0x54e66a
cmp eax, 0x80000004
je 0x54e66a
cmp eax, reloc.WS2_32.dll_closesocket
je 0x54e66a
push eax
call esi
mov eax, dword [ebp - 0x24]
xor bl, bl
mov dword [ebp - 0x10], edi
test eax, eax
je 0x54e6e5
lea ecx, [ebp - 0x34]
call fcn.00546d80
push 4
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push edi
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call fcn.0056fc1b
mov eax, dword [ebp - 0x24]
add esp, 4
test esi, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sete bl
test eax, eax
je 0x54e6e5
cmp eax, 0x80000000
je 0x54e6de
cmp eax, 0x80000005
je 0x54e6de
cmp eax, reloc.WS2_32.dll_accept
je 0x54e6de
cmp eax, reloc.WS2_32.dll_bind
je 0x54e6de
cmp eax, 0x80000004
je 0x54e6de
cmp eax, reloc.WS2_32.dll_closesocket
je 0x54e6de
push eax
call esi
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x54e6f7
push 2
push eax
call fcn.0056f898
add esp, 8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x54e710
push 2
push eax
call fcn.0056f898
add esp, 8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
test eax, eax
je 0x54e752
cmp eax, 0x80000000
je 0x54e74b
cmp eax, 0x80000005
je 0x54e74b
cmp eax, reloc.WS2_32.dll_accept
je 0x54e74b
cmp eax, reloc.WS2_32.dll_bind
je 0x54e74b
cmp eax, 0x80000004
je 0x54e74b
cmp eax, reloc.WS2_32.dll_closesocket
je 0x54e74b
push eax
call esi
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x54e764
push 2
push eax
call fcn.0056f898
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret