joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52aa50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x14], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x52abe3
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp - 4], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00481400
mov ecx, dword [ebp - 4]
lea eax, [esi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], esi
mov edi, dword [ebx + 4]
mov edi, dword [edi]
mov eax, edi
cmp edi, ecx
je 0x52abbb
cmp dword [edi + 0x1c], 0x10
lea ebx, [edi + 8]
mov eax, dword [eax]
mov esi, dword [ebx + 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
jb 0x52aad1
mov edx, dword [ebx]
mov dword [ebp - 0xc], edx
xor edx, edx
mov dword [ebp - 8], 0x811c9dc5
test esi, esi
je 0x52ab04
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
movzx esi, byte [edx + ebx]
inc edx
xor esi, ecx
imul ecx, esi, 0x1000193
cmp edx, eax
jb 0x52aae7
mov eax, dword [ebp + 8]
lea ebx, [edi + 8]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov esi, dword [edx + 0x18]
and esi, dword [ebp - 8]
mov edx, dword [edx + 0xc]
lea edx, [edx + esi*8]
mov esi, dword [edx]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], esi
cmp esi, ecx
jne 0x52ab29
mov dword [edx], edi
mov dword [edx + 4], edi
jmp 0x52abb1
mov esi, dword [edx + 4]
lea eax, [esi + 8]
push eax
push ebx
call fcn.00475f10
add esp, 8
test al, al
je 0x52ab66
mov ebx, dword [esi]
mov eax, dword [ebp + 8]
cmp ebx, edi
je 0x52ab5e
mov esi, dword [edi + 4]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], edi
jmp 0x52abae
mov ebx, esi
cmp dword [ebp - 0xc], esi
je 0x52ab8e
nop dword [eax]
mov esi, dword [esi + 4]
mov ebx, esi
lea eax, [ebx + 8]
push eax
lea eax, [edi + 8]
push eax
call fcn.00475f10
add esp, 8
test al, al
jne 0x52abc4
cmp dword [ebp - 0xc], esi
jne 0x52ab70
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
mov edi, eax
cmp eax, ecx
jne 0x52aab5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [esi]
mov esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov edx, dword [eax + 4]
mov dword [edx], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], edi
mov dword [ebx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + 4], ecx
jmp 0x52abae
push str.invalid_hash_bucket_count
call fcn.006ab32d
int3
Function at 0x52af20
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp edx, eax
je 0x52b09c
cmp dword [edx + 0x1c], 0x10
lea ecx, [ebx + 4]
mov eax, dword [ecx]
push esi
mov dword [ebp - 0x1c], eax
mov esi, edx
mov eax, dword [ebx + 0xc]
push edi
mov dword [ebp - 0x18], eax
lea edi, [edx + 8]
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], ecx
jb 0x52af63
mov edi, dword [edi]
xor edx, edx
mov ebx, 0x811c9dc5
test eax, eax
je 0x52af84
mov ecx, eax
movzx eax, byte [edx + edi]
inc edx
xor eax, ebx
imul ebx, eax, 0x1000193
cmp edx, ecx
jb 0x52af70
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
and eax, ebx
lea eax, [edx + eax*8]
mov edx, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ecx
call fcn.0050a4d0
push 0x40
push edi
call fcn.004e7fa0
mov ecx, dword [ebp - 4]
add esp, 0x10
dec dword [ecx + 4]
cmp ebx, dword [ebp - 0x20]
je 0x52afef
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x52afa0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
jne 0x52b092
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
jne 0x52b001
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
jmp 0x52b004
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x52b092
cmp dword [esi + 0x1c], 0x10
lea edx, [esi + 8]
mov ebx, dword [edx + 0x10]
jb 0x52b020
mov edx, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
test ebx, ebx
je 0x52b041
nop dword [eax + eax]
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x52b030
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x18]
and eax, edi
lea eax, [ecx + eax*8]
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x20], eax
nop dword [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea eax, [edi + 8]
push eax
push ecx
call fcn.0050a4d0
push 0x40
push edi
call fcn.004e7fa0
mov ecx, dword [ebp - 4]
add esp, 0x10
mov eax, dword [ebp + 0xc]
dec dword [ecx + 4]
cmp ebx, dword [ebp - 0x20]
je 0x52b0a3
cmp esi, eax
jne 0x52b060
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x1c]
mov dword [ecx], edi
mov dword [ecx + 4], edi
cmp esi, eax
jne 0x52b012
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x52c4a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov esi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], ecx
jb 0x52c4bc
mov esi, dword [edx]
xor ecx, ecx
mov edi, 0x811c9dc5
test ebx, ebx
je 0x52c4d8
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, ebx
jb 0x52c4c7
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edi
push edx
push eax
mov ecx, ebx
call fcn.00496740
mov esi, dword [eax + 4]
test esi, esi
je 0x52c54a
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx + 0xc]
and ecx, edi
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], esi
jne 0x52c517
cmp eax, esi
jne 0x52c50f
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x52c51f
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x52c51f
cmp eax, esi
jne 0x52c51f
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
lea edx, [ebx + 4]
dec dword [edx + 4]
mov eax, dword [esi + 4]
push esi
push edx
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
call fcn.00507bd0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5360d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7064c5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor edx, eax
movzx eax, byte [ebx + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [ebx + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x1c]
push ebx
push eax
call fcn.004bf2f0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x536158
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [edi + 8], 0xaaaaaaa
je 0x5362c2
lea eax, [edi + 4]
mov dword [ebp - 0x14], eax
push 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004e7f70
mov ecx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov ecx, dword [edi + 8]
mov ebx, dword [edi + 0x1c]
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
lea eax, [ecx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x715c60]
mov eax, ebx
shr eax, 0x1f
cvtpd2ps xmm2, xmm0
movd xmm0, ebx
cvtdq2pd xmm0, xmm0
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x715c60]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
jbe 0x536262
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x1c], xmm0
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.006d2120
fstp qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x1c]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.006c0070
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
cmp ebx, ecx
jae 0x536241
cmp ebx, 0x200
jae 0x53623f
shl ebx, 3
cmp ebx, ecx
jae 0x536241
mov ebx, ecx
push ebx
mov ecx, edi
call fcn.004c02b0
push dword [ebp + 0xc]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004bf2f0
mov ecx, dword [edi + 8]
mov edx, dword [eax]
jmp 0x536265
mov edx, dword [ebp - 0x1c]
mov ebx, dword [edx + 4]
lea eax, [ecx + 1]
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [ebx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp + 0xc]
mov ecx, dword [edi + 0xc]
mov esi, dword [ebp - 0x14]
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov esi, dword [ebp - 0x10]
jne 0x536293
mov dword [ecx + eax*8], esi
jmp 0x5362a2
cmp edi, edx
jne 0x53629c
mov dword [ecx + eax*8], esi
jmp 0x5362a6
cmp dword [ecx + eax*8 + 4], ebx
jne 0x5362a6
mov dword [ecx + eax*8 + 4], esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.unordered_map_set_too_long
call fcn.006ab32d
int3
Function at 0x5362d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov edx, ecx
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
cmp ebx, eax
je 0x536441
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
movzx eax, byte [ebx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 9]
push esi
push edi
mov edi, dword [edx + 0xc]
mov esi, ebx
xor ecx, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [edx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 0xc], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
nop word [eax + eax]
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.004dd810
push 0x18
push edi
call fcn.004e7fa0
mov edx, dword [ebp - 0x10]
add esp, 8
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x18]
je 0x53639d
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x536350
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x536437
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [edi], esi
mov dword [ecx], esi
pop edi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
cmp ecx, dword [ebp + 8]
jne 0x5363b1
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov dword [edi], eax
jmp 0x5363b4
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], ecx
cmp esi, eax
je 0x536437
nop
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edx + 0x18]
and ecx, eax
mov eax, dword [ebp - 0x1c]
lea eax, [eax + ecx*8]
mov dword [ebp + 8], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edi, esi
mov ebx, esi
mov esi, dword [esi]
lea ecx, [edi + 0xc]
call fcn.004dd810
push 0x18
push edi
call fcn.004e7fa0
mov edx, dword [ebp - 0x10]
add esp, 8
mov eax, dword [ebp + 0xc]
dec dword [edx + 8]
cmp ebx, dword [ebp - 0x18]
je 0x536448
cmp esi, eax
jne 0x536407
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
cmp esi, eax
jne 0x5363c0
mov ecx, dword [ebp - 4]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x53b830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp + 0xc]
mov edi, eax
push dword [ebp + 0x10]
shr ecx, 4
inc ecx
movzx ebx, cx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x53b86e
push 0x409
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
push ebx
push str.failed_to_load_message_resource__u
push esi
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x1e
push eax
call fcn.0053b800
add esp, 0x18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 4]
mov edi, eax
push ebx
push str.failed_to_lock_resource__u
push edi
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x21
push ecx
call fcn.0053b800
mov edx, ebx
add esp, 0x18
and edx, 0xf
xor eax, eax
nop dword [eax]
movzx ecx, word [edi]
add edi, 2
test cx, cx
je 0x53b8d2
cmp eax, edx
je 0x53b914
lea edi, [edi + ecx*2]
inc eax
cmp eax, 0x10
jl 0x53b8c0
mov eax, dword [ebp + 4]
push ebx
push str.failed_to_find_message_resource__u
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x36
push eax
call fcn.0048ee30
mov eax, dword [ebp + 8]
add esp, 0x18
xor ecx, ecx
pop edi
pop esi
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
xor eax, eax
push ecx
push edi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00473710
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x53b940
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [ebp + 0xc]
mov edi, eax
push 0xa
movzx ecx, bx
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ecx, dword [ebp + 4]
mov esi, eax
push ebx
push str.failed_to_find_RCDATA_resource__u
push esi
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x3e
push ecx
call fcn.0053b800
add esp, 0x18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp + 0xc]
mov ebx, eax
test ebx, ebx
push str.failed_to_get_size_of_resource__u
sete cl
movzx ecx, cl
push ecx
mov ecx, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x41
push ecx
call fcn.0048ee30
add esp, 0x18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 4]
mov edi, eax
push str.failed_to_lock_resource__u
push edi
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x43
push ecx
call fcn.0053b800
mov esi, dword [ebp + 8]
add esp, 0x18
mov ecx, esi
push ebx
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
push edi
mov byte [esi], 0
call fcn.00473620
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x53ba10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [ebp + 0xc]
mov edi, eax
shr ecx, 4
inc ecx
push 0x409
movzx ebx, cx
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
test esi, esi
jne 0x53ba50
push 0x409
push ebx
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 4]
push ebx
push str.failed_to_load_message_resource__u
push esi
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x1e
push eax
call fcn.0053b800
add esp, 0x18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 4]
mov edi, eax
push ebx
push str.failed_to_lock_resource__u
push edi
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x21
push ecx
call fcn.0053b800
mov edx, ebx
add esp, 0x18
and edx, 0xf
xor eax, eax
nop
movzx ecx, word [edi]
add edi, 2
test cx, cx
je 0x53bab2
cmp eax, edx
je 0x53baf4
lea edi, [edi + ecx*2]
inc eax
cmp eax, 0x10
jl 0x53baa0
mov eax, dword [ebp + 4]
push ebx
push str.failed_to_find_message_resource__u
push 1
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcLocalizedText.cpp
push 0x36
push eax
call fcn.0048ee30
mov eax, dword [ebp + 8]
add esp, 0x18
xor ecx, ecx
pop edi
pop esi
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
pop ebx
pop ebp
ret
mov esi, dword [ebp + 8]
xor eax, eax
push ecx
push edi
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00473710
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x53be10
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 8]
push ecx
push 0x20008
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x53bf24
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 2
push dword [ebp - 8]
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x53be6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x53bf24
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x53bf24
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push 2
push dword [ebp - 8]
call edi
test eax, eax
jne 0x53bea3
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x53bf26
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x14]
mov word [ebp - 0x10], 0x500
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x53bf07
xor edi, edi
cmp dword [esi], edi
jbe 0x53bf07
lea ebx, [esi + 4]
nop word [eax + eax]
push dword [ebx]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x53bf20
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x53bef0
xor bl, bl
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x53bf17
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x53bf26
mov bl, 1
jmp 0x53bf09
xor bl, bl
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x53bf39
cmp ecx, 0xffffffff
je 0x53bf39
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53d070
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push esi
call fcn.0053df40
add esp, 4
test al, al
jne 0x53d087
pop esi
pop ebp
ret
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x53d091
mov eax, dword [esi]
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x53d0a0
mov ecx, dword [edi]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne bl
cmp dword [esi + 0x14], 8
jb 0x53d0b7
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x53d0bf
mov edi, dword [edi]
push esi
push edi
mov cl, bl
xor cl, 1
push str.Failed_to_copy__s_to__s
movzx ecx, cl
push ecx
mov ecx, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x9a
push ecx
call fcn.0053af00
add esp, 0x1c
mov al, bl
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x53d3d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x53d3eb
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp + 0xc], 0
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x53d407
call edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp ebx, 0xffffffff
jne 0x53d449
cmp dword [esi + 0x14], 8
jb 0x53d414
mov esi, dword [esi]
call edi
cmp eax, 2
je 0x53d426
call edi
cmp eax, 3
je 0x53d426
mov al, 1
jmp 0x53d428
xor al, al
push esi
push str.failed_to_get_attributes_of_file__s
push eax
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x7e
push eax
call fcn.0053af00
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
pop edi
test ebx, 0x450
pop esi
sete al
pop ebx
pop ebp
ret

Function at 0x53d460
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x53d47b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp + 0xc], 0
mov ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x53d497
call edi
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp ebx, 0xffffffff
jne 0x53d4dc
cmp dword [esi + 0x14], 8
jb 0x53d4a4
mov esi, dword [esi]
call edi
cmp eax, 2
je 0x53d4b6
call edi
cmp eax, 3
je 0x53d4b6
mov al, 1
jmp 0x53d4b8
xor al, al
push esi
push str.failed_to_get_attributes_of_folder__s
push eax
mov eax, dword [ebp + 4]
push str.C:_buildAgentworkci_deploy_ninja_boot_x86_gitClientWinUtil_srcFileSysUtil.cpp
push 0x8e
push eax
call fcn.0053af00
add esp, 0x18
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
shr ebx, 4
pop edi
and bl, 1
pop esi
mov al, bl
pop ebx
pop ebp
ret