joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488825
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x6b6340
call fcn.0066bd6c
sub esp, 0x218
and dword [ebp - 4], 0
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
mov edi, 0x104
mov esi, ecx
push 0x208
mov dword [ebp - 0x14], edi
call fcn.0066c07b
pop ecx
mov ebx, eax
mov dword [ebp - 0x10], edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push dword [esi]
call edi
mov dword [ebp - 0x18], eax
cmp eax, 0xea
jne 0x4888c8
push ebx
call fcn.0066bdae
mov eax, dword [ebp - 0x10]
xor ecx, ecx
inc eax
push 2
pop edx
mov dword [ebp - 0x10], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0066c07b
pop ecx
pop ecx
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x224]
push eax
push dword [ebp + 0xc]
push dword [esi]
call edi
mov dword [ebp - 0x18], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x6d7170
mov ecx, esi
and dword [esi], 0
and dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
call fcn.00427613
lea edi, [esi + 0x18]
mov dword [ebp - 4], 1
and dword [edi], 0
xor eax, eax
and dword [edi + 0x10], 0
mov ecx, edi
push 0x6d7170
mov dword [edi + 0x14], 7
mov word [edi], ax
call fcn.00427613
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 1
jne 0x488940
lea eax, [ebp - 0x224]
mov ecx, esi
push eax
call fcn.00427613
cmp dword [ebp - 0x10], 0
je 0x488940
push ebx
mov ecx, edi
call fcn.00427613
push ebx
call fcn.0066bdae
pop ecx
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x488a54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 4], eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov eax, dword [ebp + 0x10]
jne 0x488a85
cmp dword [ebp + 0x14], eax
jne 0x488a85
inc esi
cmp eax, 1
jne 0x488a95
xor eax, eax
cmp dword [ebp + 0x14], 2
sete al
or esi, eax
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x488aa1
mov eax, dword [ebp - 4]
mov dword [ecx], eax
test esi, esi
pop esi
setne al
leave
ret 0x14

Function at 0x488fc8
Capabilities:
Set registry value

Disassembly:
cmp byte [0x7c5376], 0
je 0x488fd6
or eax, 0xffffffff
jmp 0x488ff0
push dword [esp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0x10
Function at 0x49c1e2
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push 0x6c078965
push dword [esp + 0xc]
or dword [esi + 0x1384], 0xffffffff
call fcn.004bd302
mov eax, esi
pop esi
ret 4
Function at 0x49c800
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6b7388
call fcn.0066bd6c
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
push esi
mov dword [edi], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call fcn.004274a7
lea ecx, [edi + 0x18]
mov dword [ebp - 4], ebx
lea eax, [esi + 0x18]
mov dword [ecx], ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004274a7
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
mov eax, dword [esi + 0x38]
mov dword [edi + 0x38], eax
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], ecx
mov eax, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x60]
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov al, byte [esi + 0x5c]
mov byte [edi + 0x5c], al
mov al, byte [esi + 0x5d]
mov byte [edi + 0x5d], al
mov al, byte [esi + 0x5e]
mov byte [edi + 0x5e], al
lea eax, [esi + 0x60]
push eax
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004274a7
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x7c]
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ecx
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x84]
mov dword [edi + 0x84], eax
mov eax, dword [esi + 0x88]
mov dword [edi + 0x88], eax
mov al, byte [edi + 0x8c]
xor al, byte [esi + 0x8c]
and al, 1
mov byte [ebp - 4], 2
xor byte [edi + 0x8c], al
mov al, byte [edi + 0x8c]
mov cl, byte [esi + 0x8c]
xor cl, al
and cl, 2
xor cl, al
mov byte [edi + 0x8c], cl
mov al, byte [esi + 0x8c]
xor al, cl
and al, 4
xor al, cl
mov byte [edi + 0x8c], al
mov cl, byte [esi + 0x8c]
xor cl, al
and cl, 8
xor cl, al
mov byte [edi + 0x8c], cl
mov al, byte [esi + 0x8c]
xor al, cl
and al, 0x10
xor al, cl
lea ecx, [edi + 0xa4]
mov byte [edi + 0x8c], al
mov eax, dword [esi + 0x90]
mov dword [edi + 0x90], eax
mov eax, dword [esi + 0x94]
mov dword [edi + 0x94], eax
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x9c], eax
mov eax, dword [esi + 0xa0]
mov dword [edi + 0xa0], eax
lea eax, [esi + 0xa4]
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00410204
lea ecx, [edi + 0xbc]
mov byte [ebp - 4], 3
lea eax, [esi + 0xbc]
mov dword [ecx], ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00410204
mov al, byte [esi + 0xd4]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0xd4], al
mov eax, dword [esi + 0xd8]
mov dword [edi + 0xd8], eax
mov eax, dword [esi + 0xdc]
mov dword [edi + 0xdc], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4b9877
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ecx
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0x14]
movzx eax, word [ebx + 0x13c]
cmp ax, bp
je 0x4b9941
push esi
push edi
mov edi, dword [ebx + 0x248]
mov edx, 0x173
and eax, edx
mov esi, ebp
and esi, edx
movzx ecx, ax
mov dword [esp + 0x10], esi
mov esi, dword [edi]
movzx eax, ax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
cmp esi, edi
je 0x4b98cf
mov ecx, dword [esi + 8]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x44]
mov esi, dword [esi]
cmp esi, edi
jne 0x4b98bc
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
cmp ax, di
je 0x4b98f7
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x90]
cmp byte [ebx + 0x154], 3
mov ecx, eax
je 0x4b98f7
mov byte [0x7c5d70], 1
movzx esi, word [ebx + 0x13c]
mov word [ebx + 0x13c], bp
cmp word [esp + 0x14], di
je 0x4b9928
cmp dword [0x7c0dd4], 8
mov eax, 0x7c0dc0
jb 0x4b991f
mov eax, dword [0x7c0dc0]
push ecx
push eax
mov ecx, ebx
call fcn.004a5c9f
xor esi, ebp
mov eax, 0x80
pop edi
cmp si, ax
pop esi
jne 0x4b9941
push 0
push 0
mov ecx, ebx
call fcn.004a4f1a
pop ebp
pop ebx
pop ecx
pop ecx
ret 4

Function at 0x4b9e18
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
push 0x80
push 5
push dword [ebp + 8]
mov edi, ecx
call fcn.0045fd28
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4b9e50
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.0045fcf0
test eax, eax
je 0x4b9e58
lea eax, [ebp - 8]
push eax
call fcn.0045fcba
xor al, al
pop edi
pop esi
leave
ret 8
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.004b93c9
mov eax, dword [edi + 0x23c]
xor esi, esi
sub eax, dword [edi + 0x238]
sar eax, 3
test eax, eax
je 0x4b9e96
push esi
mov ecx, edi
call fcn.004b5fe8
mov eax, dword [edi + 0x23c]
inc esi
sub eax, dword [edi + 0x238]
sar eax, 3
cmp esi, eax
jb 0x4b9e7a
mov ecx, dword [edi + 0x778]
mov eax, dword [edi + 0x77c]
add ecx, 0x3fff
adc eax, 0
shrd ecx, eax, 0xe
lea eax, [ebp - 8]
push eax
mov dword [edi + 0xf0], ecx
call fcn.0045fcba
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004a9809
cmp dword [eax + 0x14], 8
jb 0x4b9ed1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
lea ecx, [ebp - 0x28]
call fcn.0042756c
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004a9809
cmp byte [ebp + 0xc], 0
je 0x4b9f35
cmp dword [eax + 0x14], 8
jb 0x4b9ef9
mov eax, dword [eax]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0042756c
test esi, esi
je 0x4b9e50
mov ecx, edi
mov byte [ebp - 1], 1
call fcn.004a81b6
lea ecx, [ebp - 1]
push dword [eax + 0x20]
push ecx
mov ecx, eax
call fcn.00507e57
mov al, 1
jmp 0x4b9e52
cmp dword [eax + 0x14], 8
jb 0x4b9f3d
mov eax, dword [eax]
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x4b9f03
Function at 0x4bc203
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
mov ebp, SysReAllocString
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4bc21b
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, ebp
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4bc25c
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, ebp
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebp
pop ebx
ret

Function at 0x4bc2c9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x4bc2d2
pop esi
ret

Function at 0x4bd302
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [esp + 0x14]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jb 0x4bd317
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
ret 8

Function at 0x4be08e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
cmp byte [0x7c5376], 0
je 0x4be128
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push 0x6eb914
push eax
call fcn.004646d1
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4be0bd
mov eax, dword [eax]
push eax
call fcn.006867c0
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0042756c
push dword [ebp + 8]
lea eax, [ebp - 0x30]
push str.TEMP_s
push eax
call fcn.004646d1
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4be0e8
mov eax, dword [eax]
push eax
call fcn.006867c0
pop ecx
lea ecx, [ebp - 0x30]
call fcn.0042756c
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x6eb934
push eax
call fcn.004646d1
add esp, 0xc
lea eax, [ebp - 0x18]
cmp dword [ebp - 4], 8
jb 0x4be117
mov eax, dword [ebp - 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
lea ecx, [ebp - 0x18]
call fcn.0042756c
leave
ret 4
Function at 0x4bee90
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6b8d63
call fcn.0066bd6c
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [edi + 4]
xor al, byte [esi + 4]
and al, 1
xor byte [edi + 4], al
mov cl, byte [esi + 4]
xor cl, byte [edi + 4]
and cl, 2
xor cl, byte [edi + 4]
mov byte [edi + 4], cl
mov al, byte [esi + 4]
xor al, cl
and al, 4
xor al, cl
lea ecx, [edi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
lea eax, [esi + 0xc]
push eax
call fcn.00427263
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
and dword [ebp - 4], 0
mov dword [edi + 0x28], eax
lea eax, [esi + 0x30]
mov dword [edi + 0x2c], ecx
lea ecx, [edi + 0x30]
push eax
call fcn.0048dd59
lea eax, [esi + 0x44]
push eax
lea ecx, [edi + 0x44]
call fcn.00427263
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4bef1b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6b8d8a
call fcn.0066bd6c
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [edi + 4]
xor al, byte [esi + 4]
and al, 1
xor byte [edi + 4], al
mov cl, byte [esi + 4]
xor cl, byte [edi + 4]
and cl, 2
xor cl, byte [edi + 4]
mov byte [edi + 4], cl
mov al, byte [esi + 4]
xor al, cl
and al, 4
xor al, cl
lea ecx, [edi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
lea eax, [esi + 0xc]
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004274a7
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], eax
lea eax, [esi + 0x30]
mov dword [edi + 0x2c], ecx
lea ecx, [edi + 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.004bedae
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 1
lea eax, [esi + 0x44]
mov dword [ecx], ebx
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004274a7
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4c3ace
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov ecx, dword [0x7c7d44]
mov eax, ecx
push ebx
push ebp
push esi
mov esi, dword [0x7c7d40]
xor ebx, ebx
sub eax, esi
mov dword [esp + 0xc], ebx
push 0x60
cdq
pop ebp
idiv ebp
test eax, eax
je 0x4c3baa
push edi
xor edi, edi
xor ebp, ebp
cmp dword [edi + esi + 0x40], ebp
je 0x4c3b90
mov eax, dword [edi + esi + 0x3c]
push dword [esp + 0x24]
lea ecx, [eax + ebp]
mov eax, dword [edi + esi + 0x38]
dec eax
and ecx, eax
mov eax, dword [edi + esi + 0x34]
mov ebx, dword [eax + ecx*4]
push ebx
call fcn.004c2fe2
test al, al
je 0x4c3b79
push dword [ebx + 0x78]
call fcn.004c1d6a
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4c3b3d
mov eax, dword [eax]
lea ecx, [ebx + 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x4c3b48
mov ecx, dword [ecx]
add ebx, 0x18
mov edx, ebx
cmp dword [ebx + 0x14], 8
jb 0x4c3b55
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.004c2f2d
test al, al
jne 0x4c3b79
mov ecx, dword [esp + 0x20]
push ebx
call fcn.0042759b
mov ecx, dword [esp + 0x20]
push 0x6e2f84
call fcn.00437203
inc ebp
cmp ebp, dword [edi + esi + 0x40]
jne 0x4c3b07
mov ecx, dword [0x7c7d44]
mov esi, dword [0x7c7d40]
mov ebx, dword [esp + 0x10]
mov eax, ecx
inc ebx
sub eax, esi
mov dword [esp + 0x10], ebx
push 0x60
pop ebp
cdq
add edi, ebp
idiv ebp
cmp ebx, eax
jne 0x4c3afb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x4c7e0f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6b9618
call fcn.0066bd6c
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], 0x6dcf44
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
mov dword [esi], 0x6ecae4
mov dword [esi + 8], 0x6ecb00
mov dword [esi + 0xc], ebx
call fcn.004ccde3
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x70], 0xf
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4ce25c
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x6b9cb3
call fcn.0066bd6c
sub esp, 0x28
push ebx
push esi
push edi
xor edx, edx
mov byte [ebp - 0x34], 1
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
push 0x10
pop edi
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
mov bl, dl
cmp dword [ebp + 0x1c], edi
jb 0x4ce29d
mov eax, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
push ecx
push edx
push edx
push edi
push eax
call sub.DNSAPI.dll_DnsQuery_UTF8
test eax, eax
jne 0x4ce348
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4ce313
cmp word [esi + 8], di
jne 0x4ce30d
xor edi, edi
test bl, bl
jne 0x4ce30a
lea eax, [esi + 0x1c]
mov dword [ebp - 0x14], eax
cmp edi, dword [esi + 0x18]
jae 0x4ce30a
mov edx, dword [eax]
push edx
push str.DEBUG:_Processing_TXT:__s_n
call fcn.00427598
mov ecx, edx
add esp, 8
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4ce2e6
lea eax, [ebp - 0x34]
sub ecx, ebx
push eax
push ecx
push edx
call fcn.004dbc82
mov bl, al
inc edi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
test bl, bl
je 0x4ce2cc
push 0x10
pop edi
mov esi, dword [esi]
test bl, bl
je 0x4ce2b6
push 1
push dword [ebp - 0x18]
call sub.DNSAPI.dll_DnsFree
xor esi, esi
test bl, bl
je 0x4ce351
mov byte [ebp - 0xd], 1
call fcn.00478ba6
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push eax
call fcn.004dd2a9
mov byte [ebp - 4], 3
call fcn.00478be7
jmp 0x4ce351
cmp eax, 0x251d
je 0x4ce351
mov esi, eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4ce373
mov eax, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00427112
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4ce395
mov eax, dword [ebp - 0x28]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00427112
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
lea ecx, [ebp + 8]
call fcn.004102c8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4cf03a
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, 0x6b9d6c
call fcn.0066bd6c
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ecx], 0x6ef180
push 0xf
pop edx
mov dword [ecx + 4], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], edx
mov byte [ecx + 4], bl
mov dword [ecx + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], edx
mov byte [ecx + 0x1c], bl
lea ebx, [ecx + 0x34]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov byte [ebx], al
lea eax, [ecx + 0x4c]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
mov byte [eax], cl
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x16c], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4cf19e
push dword [ebp - 0x160]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push str._d._d._d
push eax
call fcn.004646b3
add esp, 0x14
movzx eax, byte [ebp - 0x52]
mov edi, 0x75b4cc
mov byte [ebp - 4], 4
sub eax, 1
je 0x4cf10d
sub eax, 1
je 0x4cf104
sub eax, 1
je 0x4cf0fb
mov dword [ebp - 0x14], edi
jmp 0x4cf114
mov dword [ebp - 0x14], str.server
jmp 0x4cf114
mov dword [ebp - 0x14], str.domaincontroller
jmp 0x4cf114
mov dword [ebp - 0x14], str.workstation
mov ecx, dword [ebp - 0x10]
push 7
pop esi
push esi
push str.Windows
lea ecx, [ecx + 4]
call fcn.0040fe77
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
lea ecx, [ecx + 0x1c]
call fcn.0040fec0
lea eax, [ebp - 0x2c]
cmp ebx, eax
je 0x4cf151
cmp dword [ebp - 0x18], 0x10
jb 0x4cf146
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
mov ecx, ebx
push eax
call fcn.0040fe77
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp - 0x50]
test eax, eax
je 0x4cf17d
cmp eax, 6
je 0x4cf176
cmp eax, 9
jne 0x4cf185
mov edi, str.amd64
push 5
jmp 0x4cf184
mov edi, str.itanium
jmp 0x4cf185
mov edi, 0x6ef1c8
push 3
pop esi
push esi
push edi
mov edi, dword [ebp - 0x10]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.0040fe77
lea ecx, [ebp - 0x2c]
call fcn.004102c8
jmp 0x4cf1de
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x10]
mov edi, 0x75b4cc
push 7
pop esi
push esi
push edi
lea ecx, [ecx + 4]
call fcn.0040fe77
mov ecx, dword [ebp - 0x10]
push esi
push edi
lea ecx, [ecx + 0x1c]
call fcn.0040fe77
push esi
push edi
mov ecx, ebx
call fcn.0040fe77
push esi
push edi
mov edi, dword [ebp - 0x10]
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.0040fe77
push 0x10
pop edx
cmp dword [esi + 0x14], edx
jb 0x4cf1e8
mov esi, dword [esi]
cmp dword [ebx + 0x14], edx
jb 0x4cf1ef
mov ebx, dword [ebx]
lea ecx, [edi + 0x1c]
cmp dword [ecx + 0x14], edx
jb 0x4cf1f9
mov ecx, dword [ecx]
lea eax, [edi + 4]
cmp dword [eax + 0x14], edx
jb 0x4cf203
mov eax, dword [eax]
push esi
push ebx
push ecx
push eax
push str.OS_info:__name__s_release__s_version__s_machine__s
call fcn.00427598
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4cf5d0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push 0x2cc
mov dword [ebp - 8], edi
call fcn.0045e2af
mov ebx, eax
push 0x6ec570
push 0x6d6fdc
mov dword [ebp - 4], ebx
mov dword [ebx], 0x10007
call fcn.00462eb0
test eax, eax
je 0x4cf648
push esi
push dword [ebp + 8]
push edi
push 0x1fffff
call eax
mov esi, eax
test esi, esi
je 0x4cf647
push esi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x4cf639
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x4cf639
lea eax, [ebp - 8]
push eax
call fcn.004cf26e
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4