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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x520c30
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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 0x477c1b
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
nop
cmp esi, eax
je 0x477c1b
mov esi, dword [esi + 4]
mov ecx, dword [edi]
cmp ecx, dword [esi + 8]
jne 0x477bd0
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.004eb418
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 0x477c4b
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 0x477c62
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x477c84
cmp eax, esi
jne 0x477c6a
mov dword [ecx], edi
jmp 0x477c84
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x477c84
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.00475a00
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 0x47a890
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 0x47a903
cmp ecx, eax
jne 0x47a8fb
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 0x47a90b
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x47a90b
cmp ecx, eax
jne 0x47a90b
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.004eb418
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8
Function at 0x481060
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x522f53
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x5ba11c]
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.0045c280
mov byte [ebp - 4], 2
call fcn.0044d220
mov ecx, eax
test ecx, ecx
je 0x4811bb
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 0x481103
push 0x104
lea ecx, [ebp - 0x10]
call fcn.004538e0
mov esi, dword [ebp - 0x10]
cmp dword [esi - 8], 0x104
lea eax, [esi - 0x10]
mov dword [ebp - 0x1c], eax
jl 0x4811c5
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.00452ac0
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x18]
call fcn.004c3ee0
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 0x48118f
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 0x4811a8
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.0044a700
push 0x80070057
call fcn.0044a700
int3
Function at 0x483a90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523403
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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.00454250
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 0x483b05
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.004eb06d
add esp, 4
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00485770
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 0x483c5c
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 0x483bb8
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x483bb0
mov eax, dword [ecx]
push esi
jmp 0x483bb6
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
add edi, 0x30
cmp byte [edi + 8], 0
je 0x483c03
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 4
cmp edi, eax
je 0x483c1c
mov ecx, dword [edi]
test ecx, ecx
je 0x483bf9
mov eax, ebx
lock xadd dword [ecx + 4], eax
jne 0x483bf9
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x483bf3
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 0x483c1c
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [edi], esi
xor esi, esi
mov byte [edi + 4], 1
jmp 0x483c1c
lea eax, [ebp - 0x24]
mov dword [edi], 0
cmp edi, eax
je 0x483c14
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 0x483c43
lock xadd dword [esi + 4], ebx
dec ebx
jne 0x483c43
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x483c3b
mov eax, dword [ecx]
push esi
jmp 0x483c41
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.00483550
push eax
call fcn.004d3387
int3
Function at 0x483e50
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, ecx
mov al, byte [ebx + 0x88]
test al, al
jne 0x483e9a
cmp byte [ebx + 0x2c], al
jne 0x483e9a
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 0x4865a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52539f
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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 0x4865da
mov eax, dword [ecx]
push 1
call dword [eax]
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x5818e4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x48660a
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 0x4865f4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4865f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4865f4
push 0x40
call fcn.004eb06d
mov esi, eax
add esp, 4
mov dword [ebp + 8], esi
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00470c90
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 0x486680
mov ecx, dword [edi]
mov dword [edi], esi
test ecx, ecx
je 0x486688
mov eax, dword [ecx]
jmp 0x486684
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 0x486f00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5254f8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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 connect
call fcn.0044ad50
mov esi, dword [ebp - 0x24]
test eax, eax
je 0x48701b
call fcn.004d03a0
mov edi, eax
mov ecx, edi
call fcn.004d0140
cmp byte [0x5c209b], 0
jne 0x486fcd
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x486fc2
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c209b
sub esp, 0xc
push 0x9a
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUILicenseDlg.cpp
push 0x20
call fcn.004d0210
jmp 0x486fc4
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x5c46f4], eax
mov ecx, edi
call fcn.004d0150
mov ecx, dword [0x5c46f4]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c46f4]
push str.Fail_create_license_registry_branch
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x5c46f4]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c46f4]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
xor bl, bl
jmp 0x4870f1
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 0x4870ef
call fcn.004d03a0
mov edi, eax
mov ecx, edi
call fcn.004d0140
cmp byte [0x5c2095], 0
jne 0x4870a4
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x487099
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2095
sub esp, 0xc
push 0xa0
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUILicenseDlg.cpp
push 0x20
call fcn.004d0210
jmp 0x48709b
xor eax, eax
mov byte [ebp - 4], 0
mov dword [0x5c4708], eax
mov ecx, edi
call fcn.004d0150
mov ecx, dword [0x5c4708]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4708]
push str.Fail_store_license_registry_key
push eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov ecx, dword [0x5c4708]
add esp, 8
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4708]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
xor bl, bl
jmp 0x4870f1
mov bl, 1
test esi, esi
je 0x4870fc
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 0x487340
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 0x487ce0
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527228
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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 0x487dcb
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00457520
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 0x487d98
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x487d8d
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x487d8d
call fcn.00453690
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 0x487d86
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 0x487d98
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.00453760
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 0x487db7
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 0x487dd9
xor ecx, ecx
jmp 0x487def
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x487de0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00453760
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 0x487e20
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x527228
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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 0x487f06
mov edx, eax
lea ecx, [ebp - 0x18]
call fcn.00457520
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 0x487ed2
mov eax, dword [esi + 0xc]
shr eax, 0x1f
test al, al
jne 0x487ec7
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x487ec7
call fcn.00453690
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 0x487ebd
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 0x487ed2
push dword [edx - 0xc]
mov ecx, ebx
push edx
call fcn.00453760
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 0x487ef1
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 0x489a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52c626
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x5ba11c]
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.004898d0
mov edi, eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x41c], 0
cmp edi, 0x400
jbe 0x489aa9
push edi
lea ecx, [ebp - 0x414]
call fcn.00453850
mov eax, dword [ebp - 0x414]
jmp 0x489ab5
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.004898d0
push ecx
mov ecx, dword [ebp - 0x414]
lea edx, [edi - 0x14]
lea ecx, [ecx + 0x14]
call fcn.004b1680
mov ebx, dword [ebp - 0x414]
add esp, 4
mov byte [ebp - 4], 2
test esi, esi
jne 0x489b0f
sub esp, 8
mov edx, 0x9d
mov ecx, str.ATL::CAtlFile::Write
call fcn.0044d7e0
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 0x489b2e
call fcn.0044a970
mov edx, eax
jmp 0x489b30
xor edx, edx
mov byte [ebp - 4], 1
test edx, edx
js 0x489c3c
mov byte [ebp - 4], 3
test esi, esi
jne 0x489bf5
call fcn.004d03a0
mov edi, eax
mov ecx, edi
call fcn.004d0140
cmp byte [0x5c2110], 0
jne 0x489b9f
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x418], eax
test eax, eax
je 0x489b98
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2110
sub esp, 0xc
push 9
push str.c:_buildagentwork4d643bb3f4c71f96_remoteinstallerinstallerui_redefine_atlassert.h
push 0x18
call fcn.004d0210
jmp 0x489b9a
xor eax, eax
mov dword [0x5c47f8], eax
mov ecx, edi
call fcn.004d0150
mov ecx, dword [0x5c47f8]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c47f8]
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 [0x5c47f8]
add esp, 0x14
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c47f8]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x489c05
call fcn.0044a970
lea eax, [ebp - 0x410]
cmp dword [ebp - 0x414], eax
je 0x489c1e
lea ecx, [ebp - 0x414]
call fcn.00453600
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.004eabba
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x420]
call fcn.00489040
push edx
call fcn.0044a700
int3
Function at 0x4951c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d7e4
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5ba11c]
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 [0x5c2174]
cmp eax, dword [edx + 4]
jle 0x49524d
push 0x5c2174
call fcn.004ead7e
add esp, 4
cmp dword [0x5c2174], 0xffffffff
jne 0x49524d
push edi
push edi
push 0x5c21a8
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
je 0x49530b
push 0x558950
call fcn.004eb403
push 0x5c2174
call fcn.004ead34
add esp, 8
push 0x5c21a8
mov dword [ebp - 0x20], 0x5c21a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x1c], 1
mov byte [ebp - 4], 2
cmp dword [0x5c210c], 0
jne 0x4952b5
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push 0xf0000000
push 1
push 0
push 0
push 0x5c210c
call esi
test eax, eax
jne 0x4952b5
push 8
push 1
push eax
push eax
push 0x5c210c
call esi
neg eax
sbb esi, esi
neg esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4952b1
movzx eax, ax
or eax, 0x80070000
test esi, esi
je 0x495323
push 0x5c21a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 1
push dword [0x5c210c]
mov byte [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x495339
jmp 0x4952f7
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 0x49531d
movzx eax, ax
or eax, 0x80070000
push eax
call fcn.0044a700
push eax
lea ecx, [ebp - 0x14]
call fcn.0044a6e0
push 0x5b6dcc
mov eax, ecx
push eax
call fcn.004edba4
push 0x80004005
lea ecx, [ebp - 0x18]
call fcn.0044a6e0
push 0x5b6dcc
mov eax, ecx
push eax
call fcn.004edba4
int3