joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403701
Capabilities:
Terminate process

Disassembly:
jmp 0x45aa93
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45aaa4
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405b4b
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403832
Capabilities:
Query environment variable

Disassembly:
jmp 0x497aed
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x497afe
pop esi
ret
push ebx
push edi
push esi
call fcn.004979d4
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040412e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x497b26
push ebx
push esi
push edi
call fcn.00405925
add esp, 0xc
push 0
call fcn.00406514
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4059f7
Capabilities:
Parse pe header

Disassembly:
jmp 0x41cba8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cbe7
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cbe7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cbe7
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cbe7
cmp dword [ecx + 0x74], 0xe
jbe 0x41cbe7
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x495cc2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4e44d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x495d0d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00496184
test al, al
jne 0x495d07
sub edx, 2
cmp edx, edi
jne 0x495ced
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x495d2f
lea eax, [edi + 2]
cmp edx, eax
je 0x495d2f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004958bb
add esp, 0x10
jmp 0x495e29
push esi
lea ecx, [ebp - 0x255]
call fcn.00496184
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x495d72
push dword [ebp - 0x25c]
jmp 0x495d1f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x495daf
cmp word [ebp - 0x226], 0
je 0x495dd0
cmp word [ebp - 0x226], ax
jne 0x495daf
cmp word [ebp - 0x224], 0
je 0x495dd0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004958bb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x495e1c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x495d89
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x495e04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x495e29
push 0x4952a3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405754
add esp, 0x10
jmp 0x495df9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a18d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ded
mov eax, dword [0x4e44d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004060f0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a191a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1a76
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406258
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e8130]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403355
mov ecx, dword [esi*4 + 0x4e8130]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1a6f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1a6f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1a6f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403355
add esp, 0x14
test edx, edx
jl 0x4a1a6f
jg 0x4a19e5
test eax, eax
jb 0x4a1a6f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1a6f
jl 0x4a19ff
cmp dword [ebp - 0x1008], eax
ja 0x4a1a6f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1a1d
test ebx, ebx
je 0x4a1a56
cmp ecx, edi
jae 0x4a1a56
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1a37
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1a43
cmp byte [ecx + 1], 0xa
jne 0x4a1a43
inc ecx
jmp 0x4a1a43
movzx eax, al
movsx eax, byte [eax + 0x4e4e10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1a1d
cmp edx, ebx
jne 0x4a1a1d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1a74
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a21b5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x4e8130]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a21f5
cmp byte [ebx], 0xa
jne 0x4a21f5
or byte [eax + edi + 0x28], 4
jmp 0x4a21fa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a22f8
mov al, byte [edx]
cmp al, 0x1a
je 0x4a22da
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2229
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a224e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2258
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4a220b
jmp 0x4a22f8
push 0
lea eax, [ebp - 0xc]
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 0x4a22d5
cmp dword [ebp - 0xc], 0
je 0x4a22d5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e8130]
test byte [eax + edi + 0x28], 0x48
je 0x4a22af
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a229a
mov byte [esi], dl
jmp 0x4a22ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e8130]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a22f8
cmp byte [ebp - 1], 0xa
jne 0x4a22be
cmp esi, ebx
jne 0x4a22be
mov byte [esi], 0xa
jmp 0x4a22f7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a22f8
mov byte [esi], 0xd
jmp 0x4a22f7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e8130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a22f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a22f8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2354
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e8130]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a2397
cmp word [esi], dx
jne 0x4a2397
or byte [edi + eax + 0x28], 4
jmp 0x4a239c
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4a24ef
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4a24cf
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a23de
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2414
cmp eax, edx
jae 0x4a2420
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4a23b6
jmp 0x4a24ef
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a24cb
cmp dword [ebp - 0x14], 0
je 0x4a24cb
mov eax, dword [ebx*4 + 0x4e8130]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a24a3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a246c
mov word [esi], cx
jmp 0x4a249f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e8130]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e8130]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e8130]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a24ef
pop ebx
cmp word [ebp - 4], bx
jne 0x4a24b4
cmp esi, dword [ebp + 0xc]
jne 0x4a24b4
mov word [esi], bx
jmp 0x4a24ec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a24ef
push 0xd
jmp 0x4a24e8
mov ecx, dword [ebx*4 + 0x4e8130]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a24e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a24ef
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x694c1580
Capabilities:
Get process heap flags

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x18
movzx eax, byte [eax]
cmp al, 6
je 0x694c15c0
jbe 0x694c15b0
sub eax, 0x30
cmp al, 0x14
ja 0x694c15a7
mov edx, 0x110001
bt edx, eax
jae 0x694c15a7
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x694c1600
mov byte [ebx], 5
add esp, 0x18
pop ebx
ret
sub eax, 3
cmp al, 1
jbe 0x694c15a0
mov byte [ebx], 5
add esp, 0x18
pop ebx
ret
mov edx, dword [ebx + 8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 8], 0
sub esp, 0xc
mov byte [ebx], 5
add esp, 0x18
pop ebx
ret
mov edx, dword [ebx + 4]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebx + 4], 0
sub esp, 0xc
mov byte [ebx], 5
add esp, 0x18
pop ebx
ret

Function at 0x694c19c0
Capabilities:
Get process heap flags

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
movzx ecx, byte [edx]
cmp cl, 0x47
ja case.0x694c19f1.0
mov ebx, eax
movzx eax, cl
mov esi, edx
jmp dword [eax*4 + 0x694c6030]
mov eax, dword [edx + 4]
mov dword [ebx + 4], eax
mov byte [ebx], cl
mov eax, 1
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x694c4030], 4
jne 0x694c1b18
xor eax, eax
jmp 0x694c1a0d
mov ebp, dword [edx + 8]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], ebp
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x694c1a25
mov eax, dword [esi + 4]
mov dword [esp + 8], ebp
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.ucrtbase.dll_memcpy
mov dword [ebx + 4], edi
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], 1
movzx ecx, byte [esi]
jmp 0x694c1a06
mov eax, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
jmp 0x694c1a06
mov eax, dword [esi + 4]
mov dword [esp + 4], 0
mov edx, dword fs:[0x18]
shl eax, 2
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x694c1a25
mov ecx, dword [esi + 4]
mov dword [ebx + 8], eax
mov dword [ebx + 4], ecx
test ecx, ecx
je 0x694c1b0c
mov edx, dword [esi + 8]
mov edi, dword [edx]
mov dword [eax], edi
mov eax, 1
cmp ecx, 1
jne 0x694c1afb
jmp 0x694c1b0c
mov edx, dword [esi + 8]
mov ecx, dword [edx + eax*4]
mov edx, dword [ebx + 8]
mov dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x694c1af8
movzx ecx, byte [esi]
jmp 0x694c1a06
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], str.unknown_ASN_type:__d_n
mov dword [esp + 8], str.asn_any_copy
mov dword [esp + 4], 0x694c4030
mov dword [esp], 2
call fcn.694c1970
xor eax, eax
jmp 0x694c1a0d
Function at 0x694c1b50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov esi, dword [ecx]
mov ebx, dword [ecx + 4]
mov eax, dword [ecx + 8]
test byte [0x694c4030], 8
jne 0x694c1b90
cmp ebx, 1
je 0x694c1bc5
lea esp, [ebp - 0xc]
mov eax, 1
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x694c6150
mov dword [esp + 8], str.DllMain
mov dword [esp + 4], 0x694c4030
mov dword [esp], 3
call fcn.694c1970
cmp ebx, 1
jne 0x694c1b79
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_DisableThreadLibraryCalls]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetTickCount64]
mov dword [0x694c7228], eax
mov dword [0x694c722c], edx
jmp 0x694c1b79

Function at 0x694c1c70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test byte [0x694c4030], 1
jne 0x694c1c80
ret
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 0xc]
call fcn.694c16a0
mov dword [esp + 0xc], str.__d___s__n
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0x694c6658
mov dword [esp + 4], 0x694c4030
mov dword [esp], 0
mov dword [esp + 0x10], eax
call fcn.694c1970
leave
ret

Function at 0x694c1cd0
Capabilities:
Contain obfuscated stackstrings
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x694c4030], 8
jne 0x694c1d20
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__d__n
mov dword [esp + 8], str.SnmpUtilMemAlloc
mov dword [esp + 4], 0x694c4030
mov dword [esp], 3
call fcn.694c1970
jmp 0x694c1ced

Function at 0x694c1d50
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get ntdll base address
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x694c4030], 8
jne 0x694c1db0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___d__n
mov dword [esp + 8], str.SnmpUtilMemReAlloc
mov dword [esp + 4], 0x694c4030
mov dword [esp], 3
call fcn.694c1970
jmp 0x694c1d71
Function at 0x694c1de0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x694c4030], 8
jne 0x694c1e30
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.SnmpUtilMemFree
mov dword [esp + 4], 0x694c4030
mov dword [esp], 3
call fcn.694c1970
jmp 0x694c1dfd

Function at 0x694c1f30
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x694c4030], 8
jne 0x694c1fe8
test ebx, ebx
je 0x694c201c
test esi, esi
je 0x694c2030
mov edx, dword [esi + 4]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebx], eax
test eax, eax
je 0x694c201c
mov edi, dword [esi + 4]
mov dword [ebx + 8], 1
mov dword [ebx + 4], edi
test edi, edi
je 0x694c1fb9
mov edx, dword [esi]
movzx ecx, byte [edx]
mov byte [eax], cl
mov eax, 1
cmp edi, 1
jne 0x694c1fd2
lea esp, [ebp - 0x10]
mov eax, 1
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov edx, dword [esi]
movzx ecx, byte [edx + eax]
mov edx, dword [ebx]
mov byte [edx + eax], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x694c1fd0
jmp 0x694c1fb9
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___p__n
mov dword [esp + 8], str.SnmpUtilOctetsCpy
mov dword [esp + 4], 0x694c4030
mov dword [esp], 3
call fcn.694c1970
test ebx, ebx
jne 0x694c1f5e
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebx + 8], 0
mov dword [ebx + 4], 0
mov dword [ebx], 0
jmp 0x694c1fb9

Function at 0x694c2050
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x694c4030], 8
jne 0x694c20d0
test ebx, ebx
je 0x694c208c
mov eax, dword [ebx + 8]
mov dword [ebx + 4], 0
test eax, eax
jne 0x694c20a0
mov dword [ebx], 0
mov dword [ebx + 8], 0
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4
mov edx, dword [ebx]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x694c207f
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.SnmpUtilOctetsFree
mov dword [esp + 4], 0x694c4030
mov dword [esp], 3
call fcn.694c1970
jmp 0x694c206d
Function at 0x694c2250
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx + 4]
mov ebx, dword [ecx]
mov dword [ebp - 0x1c], eax
test byte [0x694c4030], 8
jne 0x694c2320
test ebx, ebx
je 0x694c2354
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x694c230d
mov edi, dword [ebx]
add edi, dword [eax]
lea eax, [edi*4]
mov dword [esp + 0xc], eax
mov esi, eax
mov eax, dword [ebx + 4]
mov edi, dword fs:[0x18]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
sub esp, 0x10
mov edx, eax
test eax, eax
je 0x694c2360
mov ecx, dword [ebx]
mov esi, dword [ebp - 0x1c]
mov eax, dword [esi]
test eax, eax
je 0x694c2308
mov edi, dword [esi + 4]
mov eax, dword [edi]
mov dword [edx + ecx*4], eax
mov ecx, dword [esi]
mov eax, 1
cmp ecx, 1
jbe 0x694c2306
nop
mov ecx, dword [ebx]
mov esi, dword [edi + eax*4]
add ecx, eax
add eax, 1
mov dword [edx + ecx*4], esi
mov esi, dword [ebp - 0x1c]
mov ecx, dword [esi]
cmp eax, ecx
jb 0x694c22f0
add ecx, dword [ebx]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p___p__n
mov dword [esp + 8], str.SnmpUtilOidAppend
mov dword [esp + 4], 0x694c4030
mov dword [esp], 3
call fcn.694c1970
test ebx, ebx
jne 0x694c2281
xor eax, eax
jmp 0x694c2312
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x694c23b1
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
lea edi, [ecx*4]
mov dword [ebp - 0x24], ecx
mov dword [esp], edx
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [ebp - 0x20], edx
call sub.ucrtbase.dll_memcpy
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
jmp 0x694c22d1
xor edx, edx
xor eax, eax
mov dword [edi + 0x34], edx
jmp 0x694c2312