joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
test ecx, ecx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], esi
mov esi, eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x30], edx
jne 0x40b9e7
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x40baac
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40ba80
cmp eax, 4
je 0x40ba80
mov eax, dword [ebp - 0x20]
lea edi, [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 0x30]
sub esp, 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40b9da
cmp eax, 4
je 0x40b9da
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x40b9da
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.cygwin1.dll_memcpy
mov eax, dword [ebp - 0x18]
cmp eax, 0x40
je 0x40b9da
cmp eax, 4
lea edi, [ebp - 0x10]
jne 0x40ba5a
jmp 0x40b9da
mov dword [esp + 8], esi
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040b630
lea esi, [esi]
lea edi, [edi]
Function at 0x408cc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x42c420], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x42c41c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x42c420], eax
cmp ecx, 0x26f
jl 0x408cd0
mov dword [0x415900], 0x270
ret

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

Disassembly:
push ebx
mov eax, dword [0x42b010]
cmp eax, dword [0x415420]
je 0x408d28
mov dword [0x415900], 0x271
cmp dword [0x415900], 0x270
jl 0x408e47
cmp dword [0x415900], 0x271
jne 0x408d5f
mov eax, dword [0x42b010]
call fcn.00408cc0
mov eax, dword [0x42b010]
not eax
mov dword [0x42b010], eax
mov dword [0x415420], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x42c424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42c420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42ca54]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x42c420], edx
cmp ebx, 0xe2
jl 0x408d68
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x42c424]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x42c420]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x42c094]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x415910]
xor edx, eax
mov dword [ebx*4 + 0x42c420], edx
cmp ebx, 0x26e
jl 0x408dbc
mov eax, dword [0x42cddc]
and eax, 0x80000000
mov edx, dword [0x42c420]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x42ca50]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x415910]
xor eax, edx
mov dword [0x42cddc], eax
mov dword [0x415900], 0
mov eax, dword [0x415900]
mov eax, dword [eax*4 + 0x42c420]
add dword [0x415900], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x40a8d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x415180]
cmp ax, 0xcb
je 0x40a9cc
cmp ax, 0xcc
je 0x40a9cc
mov edx, dword [0x42d030]
test edx, edx
je 0x40a902
mov eax, dword [0x42ced0]
call edx
mov ebx, eax
jmp 0x40a907
mov ebx, 0x42ced4
cmp word [0x42cec0], 0
jle 0x40a92a
mov eax, 0x42cea0
call fcn.0040ab40
mov eax, ebx
call fcn.0040a4b0
mov eax, ebx
call fcn.0040a520
mov edi, dword [ebx]
jmp 0x40a94a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x40a945
mov edx, edi
mov eax, ebx
call fcn.00409980
jmp 0x40a948
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x40a930
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x42cec0], 0
jle 0x40a9cc
mov edx, 0x42cde0
mov eax, ebx
call fcn.00409ab0
mov edi, eax
test edi, edi
je 0x40a99f
mov eax, dword [0x42ce74]
mov dword [edi + 0xc], eax
cmp dword [0x42ce74], 0
je 0x40a994
mov eax, dword [0x42ce74]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x42ce74], eax
sub word [0x42cec0], 1
cmp word [0x42cec0], 0
sete bl
mov eax, 0x42cea0
call fcn.0040ab50
test bl, bl
je 0x40a9cc
mov eax, 0x42cea0
call fcn.0040ab30
pop edi
pop esi
pop ebx
ret
Function at 0x40def0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x7c]
push ebx
push esi
push edi
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 8
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0x10
mov dword [ebp - 0x10], pe_nt_image_headers32
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x40
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], eax
mov edx, dword [eax + 0x30]
mov eax, dword [ecx + 0x3c]
lea eax, [edx + eax]
movzx edx, word [eax + 6]
add eax, 0xf8
mov dword [ebp - 0x74], eax
lea eax, [edx - 1]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
jb 0x40e075
sub dword [ebp - 0x6c], 1
lea esi, [esi]
add dword [ebp - 0x6c], 1
imul eax, dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x74]
lea esi, [eax + edx]
lea edi, [ebp - 0x4c]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x7c]
or edx, eax
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
test dword [ebp - 0x50], 0xffffffff
je 0x40e069
mov ebx, dword [ebp - 0x28]
mov eax, ebx
and eax, 0x2000000
je 0x40dfcc
push 0x4000
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + 8]
jmp 0x40e069
mov eax, ebx
and eax, 0x20000000
je 0x40dfde
mov dword [ebp - 0x68], 1
jmp 0x40dfe5
mov dword [ebp - 0x68], 0
mov eax, ebx
and eax, 0x40000000
je 0x40dff7
mov dword [ebp - 0x64], 1
jmp 0x40dffe
mov dword [ebp - 0x64], 0
mov eax, ebx
and eax, 0x80000000
je 0x40e010
mov dword [ebp - 0x60], 1
jmp 0x40e017
mov dword [ebp - 0x60], 0
mov eax, ebx
and eax, 0x4000000
je 0x40e029
mov dword [ebp - 0x5c], 1
jmp 0x40e030
mov dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x68]
shl eax, 4
lea eax, [ebp + eax - 0x24]
mov edx, dword [ebp - 0x64]
lea ecx, [eax + edx*8]
mov eax, dword [ebp - 0x60]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x5c], 1
jne 0x40e056
or dword [ebp - 0x54], 0x200
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
push dword [ebp - 0x58]
mov esi, dword [ebp - 0x78]
call dword [esi + reloc.ole32.dll_CoInitializeSecurity]
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x6c]
ja 0x40df74
pop edi
pop esi
pop ebx
leave
ret

Function at 0x414640
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, dword [edx + 0x14]
mov eax, dword [eax]
lea eax, [ebx + eax]
mov edi, 0
lea esi, [esi]
lea ebx, [eax + edi]
mov ebp, dword [ebx]
mov esi, ecx
xor esi, ebp
mov dword [ebx], esi
lea ebx, [edi + 4]
mov edi, ebx
mov ebx, dword [edx + 8]
cmp ebx, edi
ja 0x414654
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402ed0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x404c00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41ecfc
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov ebx, ecx
mov eax, dword [ebx + 0xc]
push edi
xor edi, edi
cmp eax, edi
jne 0x404c2c
call fcn.00404460
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
or ebp, 0xffffffff
cmp eax, edi
jle 0x404d69
mov eax, dword [esp + 0x2c]
push eax
mov ecx, ebx
call fcn.00404770
cmp eax, 0xffffffff
je 0x404c56
mov eax, dword [ebx + eax*4 + 0x18]
cmp eax, edi
jne 0x404c79
mov ecx, dword [esi]
mov edi, dword [esp + 0x30]
shl ecx, 1
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esi], 0
jmp 0x404d69
test byte [eax + 0x18], 6
mov ecx, 0x7d0
je 0x404ce0
cmp dword [ebx + 0x41c], ecx
jl 0x404ce0
mov ecx, dword [esi]
mov edx, dword [esp + 0x30]
shl ecx, 1
mov ebp, ecx
shr ecx, 2
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea ecx, [eax + eax - 2]
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
push edx
push ecx
mov ecx, ebx
call fcn.004047f0
mov edx, dword [esp + 0x30]
shr edx, 1
pop edi
inc edx
mov dword [esi], edx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edi
cmp dword [ebx + 0x41c], ecx
mov eax, dword [eax + 0xc]
push 1
push 1
mov dword [esp + 0x2c], edi
push eax
jl 0x404d07
call fcn.00402ab0
jmp 0x404d0c
call fcn.00402a50
add esp, 4
lea ecx, [esp + 0x18]
push eax
call fcn.00401650
mov ebx, dword [esp + 0x10]
push ebx
call fcn.004152d3
mov ecx, dword [esi]
add esp, 4
inc eax
cmp eax, ecx
mov dword [esi], eax
jg 0x404d48
mov edi, dword [esp + 0x30]
lea ecx, [eax + eax]
mov eax, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebp, ebp
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x24], 0xffffffff
je 0x404d69
test ebx, ebx
je 0x404d69
mov eax, dword [esp + 0x14]
push ebx
call fcn.0041484d
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x40e970
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov eax, ecx
cmp dword [eax + 0x2c], 0x800000
ja 0x40e9de
push ebp
push esi
mov esi, dword [eax + 0x30]
push edi
mov edi, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
mov ebp, edx
and ebp, 0x1f
mov ecx, 0x18
sub ecx, ebp
mov ebp, edx
shr ebp, 5
mov ebp, dword [edi + ebp*4]
shr ebp, cl
shl esi, 8
add edx, 8
mov dword [eax + 0x18], edx
mov edx, dword [eax + 0x28]
and ebp, 0xff
or ebp, esi
mov esi, ebp
mov ecx, ebp
shr ecx, 1
shl edx, 8
and ecx, 0xff
or ecx, edx
mov edx, dword [eax + 0x2c]
shl edx, 8
mov dword [eax + 0x28], ecx
mov ecx, edx
cmp ecx, 0x800000
mov dword [eax + 0x30], ebp
mov dword [eax + 0x2c], edx
jbe 0x40e984
pop edi
pop esi
pop ebp
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 4]
shr edx, cl
mov dword [eax + 0x2c], edx
mov eax, dword [eax + 0x28]
mov ecx, edx
xor edx, edx
div ecx
ret 4

Function at 0x40ea00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x2c], 0x800000
push edi
ja 0x40ea6a
mov edi, dword [esi + 0x1c]
mov edx, dword [esi + 0x30]
push ebp
mov eax, dword [esi + 0x18]
mov ebp, eax
and ebp, 0x1f
mov ecx, 0x18
sub ecx, ebp
mov ebp, eax
shr ebp, 5
mov ebp, dword [edi + ebp*4]
shr ebp, cl
mov ecx, dword [esi + 0x28]
add eax, 8
shl edx, 8
and ebp, 0xff
or ebp, edx
mov dword [esi + 0x18], eax
mov edx, ebp
mov eax, ebp
shr eax, 1
shl ecx, 8
and eax, 0xff
or eax, ecx
mov ecx, dword [esi + 0x2c]
shl ecx, 8
mov dword [esi + 0x28], eax
mov eax, ecx
cmp eax, 0x800000
mov dword [esi + 0x30], ebp
mov dword [esi + 0x2c], ecx
jbe 0x40ea14
pop ebp
mov edi, dword [esi + 0x2c]
mov ecx, dword [esp + 0xc]
shr edi, cl
xor edx, edx
mov ecx, edi
mov dword [esi + 0x2c], edi
mov edi, dword [esi + 0x28]
mov eax, edi
div ecx
imul ecx, eax
sub edi, ecx
mov dword [esi + 0x28], edi
pop edi
pop esi
ret 4
Function at 0x414a22
Capabilities:
Terminate process

Disassembly:
push 8
push 0x422628
call fcn.0041688c
push 8
call fcn.00416f36
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x427078], esi
jne 0x414a56
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x427074], esi
mov al, byte [ebp + 0x10]
mov byte [0x427070], al
cmp dword [ebp + 0xc], edi
jne 0x414aa0
cmp dword [0x4278cc], edi
je 0x414a90
mov eax, dword [0x4278c8]
sub eax, 4
mov dword [0x4278c8], eax
cmp eax, dword [0x4278cc]
jb 0x414a90
mov eax, dword [eax]
cmp eax, edi
je 0x414a71
call eax
jmp 0x414a71
push 0x42602c
mov eax, 0x426024
call fcn.004149a0
pop ecx
push 0x426038
mov eax, 0x426030
call fcn.004149a0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x414ad1
cmp dword [ebp + 0x10], edi
jne 0x414adf
mov dword [0x427078], esi
push dword [ebp + 8]
call fcn.0041495e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x414ade
push 8
call fcn.00416e81
pop ecx
ret
call fcn.004168c7
ret
Function at 0x418ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + edi*8 - 0x39460001], esp
test dword [ebp - 0x6b000007], esp
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
push eax
call fcn.004181aa
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
invalid
invalid
hlt

Function at 0x418e4f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]

Function at 0x419e80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add al, byte [eax]
add byte [ebx - 0x6fb43], al
inc dword [ebx]
jne 0x419f24
and byte [ebp - 0x7ac], 0
and byte [ebp - 0x7ab], 0
mov byte [ebp - 0x7aa], 0xed
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
invalid
invalid
pop edi

Function at 0x41a33e
Capabilities:
Access peb ldr_data

Disassembly:
and al, 0x54
call fcn.0041819a
clc
pop ebp
jne 0x41a347
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x41a35e
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.0041819a
invalid
Function at 0x41a466
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x426624]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41a497
xor eax, eax
jmp 0x41a620
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4277c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41a4d3
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0041ce1a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41a5ae
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41a5ec
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41a537
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41a528
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41a508
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a577
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41a580
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41a4f9
jmp 0x41a582
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41a61b
cmp dword [ebp - 0x6c], edi
je 0x41a5ec
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41a5e1
call fcn.0041a79b
mov dword [eax], 9
call fcn.0041a7a4
mov dword [eax], esi
jmp 0x41a616
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41a5d6
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41a582
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41a582
push dword [ebp - 0x6c]
call fcn.0041a7ad
pop ecx
jmp 0x41a616
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41a604
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41a604
xor eax, eax
jmp 0x41a61e
call fcn.0041a79b
mov dword [eax], 0x1c
call fcn.0041a7a4
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41a61e
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0041a053
add ebp, 0x3a0
leave
ret
Function at 0x10002620
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x1c
mov eax, dword [ecx + 0x1c]
push ebx
push esi
xor esi, esi
test eax, eax
je 0x10002807
mov eax, dword [eax + 0x1c]
mov ebx, esi
inc esi
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x10002636
test esi, esi
je 0x10002807
lea eax, [esi + esi*4]
shl eax, 3
push edi
push eax
mov dword [esp + 0x28], eax
call dword [section..data]
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
test edi, edi
jne 0x10002675
lea eax, [edi + 0xf]
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x30]
push ebp
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x14], eax
test esi, esi
jle 0x1000278d
mov ebx, dword [esp + 0x30]
lea ecx, [edi + 0x24]
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov dword [ecx - 0x24], eax
mov dword [ecx], ebp
mov ebp, dword [eax + 0x18]
movzx ecx, word [ebp]
mov eax, ecx
sub eax, 2
je 0x100026c6
sub eax, 0x15
je 0x100026bf
xor eax, eax
jmp 0x1000275b
mov eax, 0x1c
jmp 0x100026cb
mov eax, 0x10
push 0x11
push 2
push ecx
push ebx
mov dword [esp + 0x28], eax
call fcn.1000a6e0
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x10002700
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x273f
jne 0x100027ed
xor eax, eax
jmp 0x1000275b
push dword [esp + 0x18]
push ebp
push edi
push ebx
call fcn.1000a640
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10002730
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0x2714
je 0x10002700
push edi
push ebx
call fcn.1000a610
add esp, 8
xor eax, eax
jmp 0x1000275b
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
add eax, 0xffffffe4
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
push edi
push ebx
test eax, eax
jne 0x100027e5
call fcn.1000a610
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
inc ebp
mov dword [esp + 0x1c], ebp
mov dword [ecx - 0x20], eax
add ecx, 0x28
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x14], eax
cmp ebp, esi
jl 0x100026a0
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
push 0x10002ad0
push 0x28
push esi
push edi
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov ecx, dword [esp + 0x44]
add esp, 0x10
mov eax, dword [edi]
mov dword [ecx + 0x1c], eax
test ebx, ebx
jle 0x100027c2
mov ecx, edi
nop
mov eax, dword [ecx + 0x28]
lea edx, [ecx + 0x28]
mov ecx, dword [ecx]
mov dword [ecx + 0x1c], eax
lea ecx, [edx]
sub ebx, 1
jne 0x100027b0
mov eax, dword [esp + 0x28]
push edi
mov eax, dword [eax + edi - 0x28]
mov dword [eax + 0x1c], 0
call dword [0x10011008]
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
call fcn.1000a610
add esp, 8
push dword [esp + 0x20]
call dword [0x10011008]
add esp, 4
mov eax, 4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
pop esi
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x10004340
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x10011010]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x224]
push edi
nop
mov eax, dword [esi + 0x2c]
mov al, byte [eax]
cmp al, 0x62
je 0x100044ea
cmp al, 0x66
jne 0x10004512
lea ebp, [esi + 0x14]
xor eax, eax
test dword [ebp], 0x100
je 0x10004391
push str.CARES_HOSTS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x91c4]
test ecx, ecx
cmovne eax, ecx
test eax, eax
jne 0x10004467
mov byte [esp + 0x18], al
call fcn.1000a470
cmp eax, 3
jne 0x10004420
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004439
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push eax
lea eax, [esp + 0x120]
push eax
push 0
push 0
push str.DatabasePath
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004439
cmp eax, 2
jne 0x10004506
push 0x104
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x18]
dec ecx
nop
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x10004440
mov eax, dword [str.hosts]
mov dword [ecx], eax
mov ax, word [0x1000f288]
mov word [ecx + 4], ax
mov al, byte [0x1000f28a]
mov byte [ecx + 6], al
lea eax, [esp + 0x18]
push 0x1000f28c
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10004498
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x10004491
sub eax, 1
je 0x10004491
lea edi, [ebx + 0xe]
jmp 0x100044ba
mov edi, 4
jmp 0x100044ba
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push dword [esi + 4]
push ebx
call fcn.10002080
push ebx
mov edi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x18
test edi, edi
je 0x1000450e
mov ebx, dword [esi + 4]
push ebx
call fcn.10004130
add esp, 4
test eax, eax
je 0x100044de
push dword [esi + 0x30]
movzx eax, word [esi + 8]
push ebp
push eax
push ebx
call fcn.10001390
add esp, 0x10
mov edi, eax
test edi, edi
je 0x1000450e
inc dword [esi + 0x2c]
jmp 0x10004360
push dword [esi + 4]
call fcn.10004130
add esp, 4
test eax, eax
jne 0x10004506
push esi
call fcn.100041d0
add esp, 4
test eax, eax
jne 0x10004522
inc dword [esi + 0x2c]
jmp 0x10004360
push 0
jmp 0x10004519
push dword [esp + 0x22c]
push esi
call fcn.10003da0
add esp, 8
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000de3c
add esp, 0x214
ret