joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005eed4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f72d0
push 0x100f72c8
push str.FlsAlloc
push 0x1f
call fcn.1005ecff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005ef08
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f038c]
call esi
jmp 0x1005ef0e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005ef52
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f72e0
push 0x100f72d8
push str.FlsGetValue
push 0x21
call fcn.1005ecff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005ef89
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f038c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005ef91
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100f72e8
push 0x100f72e0
push str.FlsSetValue
push 0x22
call fcn.1005ecff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005efcb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100f038c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1005f5a0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x101ca048]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005f5e0
cmp byte [ebx], 0xa
jne 0x1005f5e0
or byte [edi + eax + 0x28], 4
jmp 0x1005f5e5
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1005f6e4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1005f6c7
inc eax
cmp dl, 0xd
je 0x1005f611
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1005f637
cmp eax, ecx
jae 0x1005f645
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1005f5f9
jmp 0x1005f6e4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005f6c2
cmp dword [ebp - 0x10], 0
je 0x1005f6c2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101ca048]
test byte [eax + edi + 0x28], 0x48
je 0x1005f69c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1005f687
mov byte [esi], dl
jmp 0x1005f698
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101ca048]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1005f6e4
cmp byte [ebp - 1], 0xa
jne 0x1005f6ab
cmp esi, ebx
jne 0x1005f6ab
mov byte [esi], 0xa
jmp 0x1005f6e3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10060126
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1005f6e4
mov byte [esi], 0xd
jmp 0x1005f6e3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101ca048]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1005f6e1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1005f6e4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1005f6ed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101ca048]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1005f733
cmp word [ebx], dx
jne 0x1005f733
or byte [eax + edi + 0x28], 4
jmp 0x1005f738
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1005f89b
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1005f87b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1005f779
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1005f7af
cmp eax, edx
jae 0x1005f7bd
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1005f754
jmp 0x1005f89b
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005f876
cmp dword [ebp - 0x18], 0
je 0x1005f876
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101ca048]
test byte [eax + edi + 0x28], 0x48
je 0x1005f84c
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1005f810
mov word [esi], cx
jmp 0x1005f847
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101ca048]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101ca048]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101ca048]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1005f89b
pop eax
cmp word [ebp - 4], ax
jne 0x1005f85c
cmp esi, ebx
jne 0x1005f85c
mov word [esi], ax
jmp 0x1005f898
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10060126
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1005f89b
push 0xd
pop eax
jmp 0x1005f857
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101ca048]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1005f895
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1005f89b
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100652c3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10065360
push ebx
push esi
call fcn.1006528c
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1006363c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1006530d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006535f
push edi
push eax
call fcn.10060184
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1006532d
call fcn.1005e44f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1006535e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1006363c
add esp, 0x20
test eax, eax
jne 0x1006534c
push edi
call fcn.1005e44f
jmp 0x10065354
push ebx
call fcn.1005e44f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10065363
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10065374
pop esi
ret
push ebx
push edi
push esi
call fcn.1006528c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10060184
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1006539c
push ebx
push esi
push edi
call fcn.10048db0
add esp, 0xc
push 0
call fcn.1005e44f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10065af6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10065611

Function at 0x100681e2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005bc88
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10068251
cmp esi, dword [ebp - 4]
je 0x1006824c
cmp dword [ebp + 0xc], 0
je 0x1006824c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10068229
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10067d34
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10068253
xor eax, eax
inc eax
jmp 0x10068253
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100682b8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x101c6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1005bc88
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1005bc88
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1006832f
cmp word [ecx], dx
je 0x1006832f
mov eax, dword [0x100f7a0c]
push edi
dec eax
push eax
push 0x100f78f8
call fcn.10068257
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100683a2
cmp word [eax], dx
je 0x100683a2
mov eax, dword [edi]
test eax, eax
je 0x10068353
cmp word [eax], dx
je 0x10068353
lea eax, [ebp - 0x10]
push eax
call fcn.10067c3a
jmp 0x1006835c
lea eax, [ebp - 0x10]
push eax
call fcn.10067cd5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100683cc
mov eax, dword [0x100f78f4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100f75e8
call fcn.10068257
add esp, 0xc
test al, al
je 0x100683cc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10068397
cmp word [eax], di
je 0x10068397
lea eax, [ebp - 0x10]
push eax
call fcn.10067c3a
pop ecx
jmp 0x100683ce
lea eax, [ebp - 0x10]
push eax
call fcn.10067cd5
jmp 0x10068394
mov eax, dword [edi]
test eax, eax
je 0x100683b9
cmp word [eax], dx
je 0x100683b9
lea eax, [ebp - 0x10]
push eax
call fcn.10067bef
pop ecx
jmp 0x100683cc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10068497
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100680dc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10068497
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10068497
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10068497
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10068424
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005f170
test ebx, ebx
je 0x10068492
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005f170
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10068497
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10068497
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006bd9a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10068499
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10046e60
leave
ret
Function at 0x1006c591
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1006c50d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1006c700
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1006c700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1006c6b5
jg 0x1006c5ed
test eax, eax
je 0x1006c6ab
push 1
push 0x1000
call fcn.1005e9fd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1006c610
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006c6a2
push 0x8000
push ebx
call fcn.1006c43e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1006c639
jg 0x1006c634
cmp ecx, 0x1000
jb 0x1006c639
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1005e233
add esp, 0x10
cmp eax, 0xffffffff
je 0x1006c67e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1006c634
jl 0x1006c665
test ecx, ecx
jne 0x1006c626
push dword [ebp - 0xc]
push ebx
call fcn.1006c43e
push esi
call fcn.1005e44f
add esp, 0xc
xor ebx, ebx
jmp 0x1006c70e
cmp byte [edi + 0x24], 0
je 0x1006c695
cmp dword [edi + 0x20], 5
jne 0x1006c695
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1006c6a0
mov ebx, dword [edi + 0x18]
jmp 0x1006c6a2
xor ebx, ebx
push esi
call fcn.1005e44f
pop ecx
jmp 0x1006c70e
test ecx, ecx
jg 0x1006c677
jl 0x1006c6b5
test eax, eax
jae 0x1006c677
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10060126
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1006c6d5
cmp byte [edi + 0x1c], 0
je 0x1006c677
jmp 0x1006c706
push ebx
call fcn.10066081
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1006c677
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1006c70e
cmp byte [edi + 0x1c], 0
je 0x1006c70b
mov ebx, dword [edi + 0x18]
jmp 0x1006c70e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10060126
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10079e40
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
xor esi, esi
push edi
test ebp, ebp
je 0x10079fa7
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, 2
jbe 0x10079efc
mov dword [esp + 0x10], 4
nop dword [eax]
mov ah, byte [ecx]
sub edi, 3
mov dl, byte [ecx + 1]
mov bl, ah
mov dh, byte [ecx + 2]
mov al, dl
mov ebp, dword [esp + 0x24]
and bl, 3
shr al, 4
and dl, 0xf
shl bl, 4
add ecx, 3
add bl, al
shl dl, 2
mov al, dh
shr al, 6
add dl, al
cmp dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x20]
ja 0x10079fa7
movzx eax, ah
shr eax, 2
mov al, byte [eax + 0x100fdd30]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x100fdd30]
mov byte [esi + ebp + 1], al
movzx eax, dl
mov al, byte [eax + 0x100fdd30]
mov byte [esi + ebp + 2], al
movzx eax, dh
and eax, 0x3f
mov al, byte [eax + 0x100fdd30]
mov byte [esi + ebp + 3], al
add esi, 4
mov eax, dword [esp + 0x10]
add eax, 4
mov dword [esp + 0x10], eax
cmp edi, 2
ja 0x10079e70
test edi, edi
je 0x10079f95
xor bl, bl
mov word [esp + 0x21], 0
xor ah, ah
mov byte [esp + 0x20], bl
xor dl, dl
test edi, edi
je 0x10079f34
push edi
push ecx
lea eax, [esp + 0x28]
push eax
call fcn.10048db0
mov ah, byte [esp + 0x2e]
add esp, 0xc
mov dl, byte [esp + 0x21]
mov bl, byte [esp + 0x20]
mov al, dl
shr ah, 6
mov cl, bl
shr al, 4
and bl, 3
shr cl, 2
and dl, 0xf
shl bl, 4
shl dl, 2
add bl, al
add dl, ah
lea eax, [esi + 4]
cmp eax, dword [esp + 0x24]
ja 0x10079fa7
movzx eax, cl
mov al, byte [eax + 0x100fdd30]
mov byte [esi + ebp], al
movzx eax, bl
mov al, byte [eax + 0x100fdd30]
mov byte [esi + ebp + 1], al
add esi, 2
lea ecx, [esi + ebp]
cmp edi, 1
jne 0x10079f82
mov al, 0x3d
jmp 0x10079f8b
movzx eax, dl
mov al, byte [eax + 0x100fdd30]
mov byte [ecx], al
mov byte [esi + ebp + 1], 0x3d
add esi, 2
cmp esi, dword [esp + 0x24]
jae 0x10079fa7
pop edi
mov byte [esi + ebp], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
Function at 0x1007a2b0
Capabilities:
Get hostname

Disassembly:
sub esp, 0x13c
mov eax, dword [0x101c6040]
xor eax, esp
mov dword [esp + 0x138], eax
push esi
mov esi, dword [esp + 0x144]
lea eax, [esp + 0x24]
push pe_nt_image_headers32
xorps xmm0, xmm0
push 0
push eax
movups xmmword [esp + 0x10], xmm0
call fcn.10048bd0
lea eax, [esp + 0x30]
push eax
call fcn.1007c3f0
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov dword [esp + 0x30], 0
shr ecx, 0x10
xor ecx, eax
movzx eax, cx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x34]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x1007a357
call fcn.10057cd5
cmp dword [eax], 0x26
jne 0x1007a338
push 0x100
push str.hostname_exceeds__d_characters__truncating.
jmp 0x1007a344
call fcn.10057cd5
push dword [eax]
push str.unable_to_get_hostname:__d
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0xc
push 0
push 0
push 1
push 0x101c7a98
mov byte [esp + 0x143], 0
call fcn.1007c310
movups xmm0, xmmword [esp + 0x34]
mov dword [esp + 0x144], eax
mov dword [esp + 0x148], edx
movups xmmword [esp + 0x24], xmm0
movd ecx, xmm0
psrldq xmm0, 4
movd eax, xmm0
not ecx
mov dword [esp + 0x2c], ecx
not eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push pe_nt_image_headers32
push eax
call fcn.1007a600
mov eax, dword [esp + 0x24]
add esp, 0x20
cmp byte [esp + 0x148], 0
mov dword [esi + 0x10], eax
mov al, byte [esp + 8]
mov byte [esi + 0x14], al
je 0x1007a3f2
mov eax, dword [esp + 0xc]
mov ecx, eax
and ecx, 0xff0ffff0
and eax, 0xff0ffff0
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x13c]
mov dword [esi + 0x18], eax
pop esi
xor ecx, esp
call fcn.10046e60
add esp, 0x13c
ret
Function at 0x1008d280
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ecx, 0x1008ea10
test ebp, ebp
mov dword [esp + 8], 0
push esi
mov esi, dword [esp + 0x1c]
mov eax, 0x1008e960
cmovne eax, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov ecx, 0x1010beb0
push edi
mov edi, dword [esp + 0x28]
mov eax, 0x1010beb4
cmove eax, ecx
mov bh, 1
mov dword [esp + 0x24], eax
mov ecx, 0x10
push 0
lea eax, [esp + 0x14]
setne bl
push eax
push 0
mov eax, 0x21
cmovne eax, ecx
push 8
movzx eax, ax
push eax
push esi
call sub.DNSAPI.dll_DnsQuery_UTF8
test eax, eax
je 0x1008d35c
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x400
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x1008d339
push dword [esp + 0x14]
push esi
push dword [esp + 0x2c]
push str.Failed_to_look_up__s_record___s_:__s
push 3
push 2
push dword [esp + 0x44]
call fcn.10079370
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
jmp 0x1008d41f
push esi
push dword [esp + 0x28]
push str.Failed_to_look_up__s_record___s_:_Unknown_error
push 3
push 2
push dword [esp + 0x40]
call fcn.10079370
mov ecx, dword [esp + 0x28]
add esp, 0x18
jmp 0x1008d41f
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x1008d370
push esi
push dword [esp + 0x28]
push str.No__s_records_for___s_
jmp 0x1008d343
mov edx, dword [esp + 0x2c]
xor esi, esi
cmp ebp, 1
jne 0x1008d384
cmp word [ecx + 8], 0x10
je 0x1008d38f
jmp 0x1008d3c9
test ebp, ebp
jne 0x1008d3c9
cmp word [ecx + 8], 0x21
jne 0x1008d3c9
test esi, esi
jle 0x1008d398
cmp ebp, 1
je 0x1008d3fb
test edi, edi
je 0x1008d3ae
test esi, esi
je 0x1008d3a8
mov eax, dword [ecx + 0x10]
cmp eax, dword [edi + 4]
jae 0x1008d3ae
mov eax, dword [ecx + 0x10]
mov dword [edi + 4], eax
push edx
push edi
push ecx
push dword [esp + 0x2c]
call dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
add esp, 0x10
test al, al
je 0x1008d419
mov edx, dword [esp + 0x2c]
inc esi
mov eax, dword [ecx]
mov ecx, eax
mov dword [esp + 0x10], ecx
test eax, eax
jne 0x1008d376
mov dword [edi], esi
test esi, esi
jne 0x1008d41d
push dword [esp + 0x20]
push dword [esp + 0x28]
push str.No_matching__s_records_for___s_
push 3
push 2
push edx
call fcn.10079370
mov ecx, dword [esp + 0x28]
add esp, 0x18
jmp 0x1008d41f
push dword [esp + 0x20]
xor bh, bh
push str.Multiple_TXT_records_for___s_
push 3
push 2
push edx
call fcn.10079370
mov ecx, dword [esp + 0x24]
add esp, 0x14
jmp 0x1008d41f
xor bh, bh
jmp 0x1008d41f
mov bl, 1
test ecx, ecx
je 0x1008d42b
push 1
push ecx
call sub.DNSAPI.dll_DnsFree
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1008d43a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x1008d44c
test bh, bh
je 0x1008d44c
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
Function at 0x1008d850
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x34
mov eax, dword [0x101c6040]
xor eax, esp
mov dword [esp + 0x30], eax
cmp dword [esp + 0x38], 0
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
je 0x1008d9da
test ebp, ebp
je 0x1008da0b
movzx eax, word [ebp + 0x20a]
push esi
push eax
push 0x1010c020
lea eax, [esp + 0x3c]
push 8
push eax
call fcn.10078490
mov eax, dword [ebp + 0x20c]
lea esi, [ebp + 4]
add esp, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x1c], 1
xorps xmm0, xmm0
mov dword [esp + 0x14], 0
movlpd qword [esp + 0x24], xmm0
push eax
lea eax, [esp + 0x18]
movlpd qword [esp + 0x30], xmm0
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0
push eax
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1008d911
push esi
push 0x1010c024
push 3
push 2
push ebx
call fcn.10079370
add esp, 0x14
xor eax, eax
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10046e60
add esp, 0x34
ret
mov esi, dword [esp + 0xc]
push edi
test esi, esi
je 0x1008d9a2
nop
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call fcn.100b3740
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1008d96d
call fcn.1007c3d0
mov edi, eax
mov ecx, edx
imul eax, dword [esp + 0x48], 0x3e8
cdq
add edi, eax
adc ecx, edx
push ecx
push edi
push dword [esi + 0x10]
push dword [esi + 0x18]
push ebx
call fcn.100b3470
add esp, 0x14
test eax, eax
je 0x1008d978
push ebx
call fcn.100b35d0
add esp, 4
xor ebx, ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x1008d920
test ebx, ebx
je 0x1008d99e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push ebx
call fcn.100ba7f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.10046e60
add esp, 0x34
ret
mov ebx, dword [esp + 0x14]
lea eax, [ebp + 0x104]
push eax
push str.Failed_to_connect_to_target_host:__s
push 5
push 2
push ebx
call fcn.10079370
add esp, 0x14
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov ecx, dword [esp + 0x40]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10046e60
add esp, 0x34
ret
push str.connecttimeoutms
push str.mongoc_client_connect_tcp
push 0x29b
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_client.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
push str.host
push str.mongoc_client_connect_tcp
push 0x29c
push str.C:Usersprocr_vcpkg_buildtreesmongo_c_driver_src1.26.1_690bc2849a.clean_srclibmongoc_srcmongocmongoc_client.c
push str._s:_d__s__:_precondition_failed:__s_n
push 2
call fcn.1004c994
add esp, 4
push eax
call fcn.10070de0
add esp, 0x18
call fcn.10056f35
int3