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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a4f10
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebx + 4]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x4bde5b
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
nop
cmp esi, eax
je 0x4bde5b
mov esi, dword [esi + 4]
mov ecx, dword [edi]
cmp ecx, dword [esi + 8]
jne 0x4bde10
mov edx, dword [ebp + 0x10]
push 0xc
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.0066a2e8
mov eax, dword [ebp + 8]
add esp, 8
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
cmp esi, eax
je 0x4bde8b
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4bdea2
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x4bdec4
cmp eax, esi
jne 0x4bdeaa
mov dword [ecx], edi
jmp 0x4bdec4
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4bdec4
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
mov dword [ebp - 4], 2
call fcn.004bbc40
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 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 0xc
Function at 0x4c0ad0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx edx, byte [eax + 8]
movzx ecx, byte [eax + 0xa]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x4c0b43
cmp ecx, eax
jne 0x4c0b3b
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x4c0b4b
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x4c0b4b
cmp ecx, eax
jne 0x4c0b4b
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push 0x10
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.0066a2e8
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8
Function at 0x4c72a0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a7223
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x20], ebx
mov dword [ebx + 4], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x30]
mov dword [ebx], vtable.CAddRangeDlg.0
call fcn.004a24c0
mov byte [ebp - 4], 2
call fcn.00493480
mov ecx, eax
test ecx, ecx
je 0x4c73fb
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov byte [ebp - 4], 3
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x4c7343
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00499b40
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
lea eax, [esi - 0x10]
mov dword [ebp - 0x1c], eax
jl 0x4c7405
push 0x104
mov dword [eax + 4], 0x104
push esi
mov byte [esi + 0x104], 0
call dword [sym.imp.WSOCK32.dll_gethostname]
push esi
lea ecx, [ebp - 0x18]
call fcn.00498d20
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.0050a150
push dword [ebp - 0x14]
mov esi, dword [sym.imp.WSOCK32.dll_htonl]
call esi
push dword [ebp - 0x14]
and eax, 0xffffff00
inc eax
mov dword [ebx + 0x20], eax
call esi
mov edx, dword [ebp - 0x18]
and eax, 0xffffff00
add eax, 0xff
add edx, 0xfffffff0
mov dword [ebx + 0x24], eax
or esi, 0xffffffff
mov byte [ebp - 4], 5
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4c73cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 6
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4c73e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00490960
push 0x80070057
call fcn.00490960
int3
Function at 0x4c9cd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a76d3
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
lea ecx, [edi + 4]
call fcn.0049a4a0
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x42d
push dword [edi + 4]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [edi + 0x2c], 1
jne 0x4c9d45
push 0x42c
push dword [edi + 4]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3f5
push dword [edi + 4]
call ebx
push 0xffffffffffffffff
mov dword [edi + 0x3c], eax
push dword [edi + 4]
call ebx
mov dword [edi + 0x40], eax
push dword [edi + 0x28]
push 0x42a
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 0x96
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [ebp - 4], 0
push 0xb0
mov dword [ebp - 0x10], edi
call fcn.00669f3d
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.004cb9b0
mov esi, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x30], esi
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
test esi, esi
je 0x4c9e9c
lea ecx, [esi + 4]
lock inc dword [ecx]
mov dword [ebp - 0x24], esi
mov byte [ebp - 0x20], 1
mov dword [ebp - 0x14], 1
or ebx, 0xffffffff
mov byte [ebp - 4], 3
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x4c9df8
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4c9df0
mov eax, dword [ecx]
push esi
jmp 0x4c9df6
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
add edi, 0x30
cmp byte [edi + 8], 0
je 0x4c9e43
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
cmp edi, eax
je 0x4c9e5c
mov ecx, dword [edi]
test ecx, ecx
je 0x4c9e39
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x4c9e39
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x4c9e33
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov dword [edi], esi
xor esi, esi
mov byte [edi + 4], 1
jmp 0x4c9e5c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], esi
xor esi, esi
mov byte [edi + 4], 1
jmp 0x4c9e5c
lea eax, [ebp - 0x24]
mov dword [edi], 0
cmp edi, eax
je 0x4c9e54
mov dword [edi], esi
xor esi, esi
mov byte [edi + 4], 1
mov byte [edi + 8], 1
mov dword [ebp - 4], 6
test esi, esi
je 0x4c9e83
lock xadd dword [esi + 4], ebx
dec ebx
jne 0x4c9e83
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x4c9e7b
mov eax, dword [ecx]
push esi
jmp 0x4c9e81
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, 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 0x10
mov edx, 4
lea ecx, [ebp - 0x1c]
call fcn.004c9790
push eax
call fcn.00652251
int3
Function at 0x4ca090
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, ecx
mov al, byte [ebx + 0x88]
test al, al
jne 0x4ca0da
cmp byte [ebx + 0x2c], al
jne 0x4ca0da
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x42c
push dword [ebx + 4]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
push 0x42d
push dword [ebx + 4]
call edi
push 5
push eax
call esi
mov al, 1
lea ecx, [ebx + 0x88]
xchg byte [ecx], al
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10

Function at 0x4cc7e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a966f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edi, [ecx + 0x20]
mov ecx, dword [edi]
mov dword [edi], 0
test ecx, ecx
je 0x4cc81a
mov eax, dword [ecx]
push 1
call dword [eax]
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x771990
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x4cc84a
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 0xc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4cc834
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4cc834
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4cc834
push 0x40
call fcn.00669f3d
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004b6ed0
mov ecx, dword [esi + 0xc]
mov edx, dword [ebp + 0xc]
mov dword [esi], vtable.membuf.0
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], edx
mov dword [ecx], ebx
mov eax, dword [esi + 0x1c]
mov dword [eax], ebx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
lea eax, [ebp + 0xc]
cmp edi, eax
je 0x4cc8c0
mov ecx, dword [edi]
mov dword [edi], esi
test ecx, ecx
je 0x4cc8c8
mov eax, dword [ecx]
jmp 0x4cc8c4
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov al, 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 0xc
Function at 0x4cd140
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6a97c8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push ecx
push 0x20006
sub esp, 8
lea ecx, [ebp - 0x24]
push str.SOFTWAREAtom_SecurityRemoteInstaller
push reloc.WSOCK32.dll_accept
call fcn.00490fb0
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x4cd25b
call fcn.00516890
mov edi, eax
mov ecx, edi
call fcn.00516630
cmp byte [0x7b8953], 0
jne 0x4cd20d
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x4cd202
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8953
sub esp, 0xc
push 0x9a
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUILicenseDlg.cpp
push 0x20
call fcn.00516700
jmp 0x4cd204
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x7bafd0], eax
mov ecx, edi
call fcn.00516640
mov ecx, dword [0x7bafd0]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bafd0]
push str.Fail_create_license_registry_branch
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x7bafd0]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bafd0]
lea ecx, [ecx + 0xd0]
call fcn.00516640
xor bl, bl
jmp 0x4cd331
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push 8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0xb
push 0
push str.License
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4cd32f
call fcn.00516890
mov edi, eax
mov ecx, edi
call fcn.00516630
cmp byte [0x7b894d], 0
jne 0x4cd2e4
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4cd2d9
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b894d
sub esp, 0xc
push 0xa0
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUILicenseDlg.cpp
push 0x20
call fcn.00516700
jmp 0x4cd2db
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x7bafe4], eax
mov ecx, edi
call fcn.00516640
mov ecx, dword [0x7bafe4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bafe4]
push str.Fail_store_license_registry_key
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x7bafe4]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bafe4]
lea ecx, [ecx + 0xd0]
call fcn.00516640
xor bl, bl
jmp 0x4cd331
mov bl, 1
test esi, esi
je 0x4cd33c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x4cd580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push 1
push 0
push 0
add eax, 0x7c
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
pop ebp
ret 0xc
Function at 0x4cdf20
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ab4f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
je 0x4ce00b
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0049d760
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [eax]
mov esi, dword [ebx]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4cdfd8
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4cdfcd
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4cdfcd
call fcn.004998f0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4cdfc6
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4cdfd8
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.004999c0
mov eax, dword [ebp - 0x18]
lea edx, [eax - 0x10]
mov dword [ebp - 4], 2
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4cdff7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
test edx, edx
jne 0x4ce019
xor ecx, ecx
jmp 0x4ce02f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4ce020
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.004999c0
push dword [ebp - 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, 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
Function at 0x4ce060
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6ab4f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
push 0
push dword [ebp + 8]
mov byte [ebp - 0xd], 0
push 0
push 8
push 1
push dword [ecx]
call dword [sym.imp.DNSAPI.dll_DnsQuery_W]
test eax, eax
je 0x4ce146
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.0049d760
mov dword [ebp - 4], 0
or edi, 0xffffffff
mov edx, dword [eax]
mov esi, dword [ebx]
sub esi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4ce112
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x4ce107
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4ce107
call fcn.004998f0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
mov eax, edi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4ce0fd
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
add eax, 0x10
mov dword [ebx], eax
jmp 0x4ce112
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.004999c0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov dword [ebp - 4], 2
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x4ce131
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 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
Function at 0x4cfc70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b08f6
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x7adbc4]
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 ebx, ecx
push 0
call fcn.004cfb00
mov edi, eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x41c], 0
cmp edi, 0x400
jbe 0x4cfcd9
push edi
lea ecx, [ebp - 0x414]
call fcn.00499ab0
mov eax, dword [ebp - 0x414]
jmp 0x4cfce5
lea eax, [ebp - 0x410]
mov dword [ebp - 0x414], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x420], esi
mov dword [ebp - 0x41c], 0
push eax
mov ecx, ebx
call fcn.004cfb00
push ecx
mov ecx, dword [ebp - 0x414]
lea edx, [edi - 0x14]
lea ecx, [ecx + 0x14]
call fcn.004f78c0
mov ebx, dword [ebp - 0x414]
add esp, 4
mov byte [ebp - 4], 2
test esi, esi
jne 0x4cfd3f
sub esp, 8
mov edx, 0x9d
mov ecx, str.ATL::CAtlFile::Write
call fcn.00493a40
add esp, 8
push 0
lea eax, [ebp - 0x418]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4cfd5e
call fcn.00490bd0
mov edx, eax
jmp 0x4cfd60
xor edx, edx
mov byte [ebp - 4], 1
test edx, edx
js 0x4cfe6c
mov byte [ebp - 4], 3
test esi, esi
jne 0x4cfe25
call fcn.00516890
mov edi, eax
mov ecx, edi
call fcn.00516630
cmp byte [0x7b89c8], 0
jne 0x4cfdcf
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x418], eax
test eax, eax
je 0x4cfdc8
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b89c8
sub esp, 0xc
push 9
push str.c:gitlab_runner_builds_tzuw5duw0windowswindows_agent_remoteinstallerinstallerui_redefine_atlassert.h
push 0x18
call fcn.00516700
jmp 0x4cfdca
xor eax, eax
mov dword [0x7bb0d4], eax
mov ecx, edi
call fcn.00516640
mov ecx, dword [0x7bb0d4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb0d4]
push str.ATLASSERT
push 0x102
push str.ATL::CAtlFile::Flush
mov ecx, dword [eax]
push str.SCAssertT_at__s__d:__s
push eax
call dword [ecx + 0x48]
mov ecx, dword [0x7bb0d4]
add esp, 0x14
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb0d4]
lea ecx, [ecx + 0xd0]
call fcn.00516640
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4cfe35
call fcn.00490bd0
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x4cfe4e
lea ecx, [ebp - 0x414]
call fcn.00499860
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.00669a8a
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x420]
call fcn.004cf270
push edx
call fcn.00490960
int3
Function at 0x4db3f0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b1ab4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x7adbc4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x7b8a2c]
cmp eax, dword [edx + 4]
jle 0x4db47d
push 0x7b8a2c
call fcn.00669c4e
add esp, 4
cmp dword [0x7b8a2c], 0xffffffff
jne 0x4db47d
push edi
push edi
push 0x7b8a60
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
je 0x4db53b
push 0x6dcc50
call fcn.0066a2d3
push 0x7b8a2c
call fcn.00669c04
add esp, 8
push 0x7b8a60
mov dword [ebp - 0x20], 0x7b8a60
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x1c], 1
mov byte [ebp - 4], 2
cmp dword [0x7b89c4], 0
jne 0x4db4e5
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push 0
push 0
push 0x7b89c4
call esi
test eax, eax
jne 0x4db4e5
push 8
push 1
push eax
push eax
push 0x7b89c4
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4db4e1
movzx eax, ax
or eax, 0x80070000
test esi, esi
je 0x4db553
push 0x7b8a60
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 1
push dword [0x7b89c4]
mov byte [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x4db569
jmp 0x4db527
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4db54d
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.00490960
push eax
lea ecx, [ebp - 0x14]
call fcn.00490940
push 0x7a719c
mov eax, ecx
push eax
call fcn.0066d7ed
push 0x80004005
lea ecx, [ebp - 0x18]
call fcn.00490940
push 0x7a719c
mov eax, ecx
push eax
call fcn.0066d7ed
int3