joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419f83
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 + 0x4277d0]
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 0x419fc9
cmp word [ebx], dx
jne 0x419fc9
or byte [eax + edi + 0x28], 4
jmp 0x419fce
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 0x41a131
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 0x41a111
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41a00f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41a045
cmp eax, edx
jae 0x41a053
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 0x419fea
jmp 0x41a131
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 0x41a10c
cmp dword [ebp - 0x18], 0
je 0x41a10c
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4277d0]
test byte [eax + edi + 0x28], 0x48
je 0x41a0e2
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 0x41a0a6
mov word [esi], cx
jmp 0x41a0dd
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4277d0]
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 + 0x4277d0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4277d0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41a131
pop eax
cmp word [ebp - 4], ax
jne 0x41a0f2
cmp esi, ebx
jne 0x41a0f2
mov word [esi], ax
jmp 0x41a12e
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419da6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41a131
push 0xd
pop eax
jmp 0x41a0ed
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4277d0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41a12b
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41a131
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 0x41cac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41caed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41caed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10001197
Capabilities:
Create directory
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [ebp + 8]
push eax
call fcn.1000100c
add esp, 4
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x100011c2
xor eax, eax
jmp 0x100012b7
mov dword [ebp - 0x214], 0
jmp 0x100011dd
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + edx*2]
test ecx, ecx
je 0x10001240
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax + edx*2]
cmp ecx, 0x5c
jne 0x10001223
mov edx, dword [ebp - 0x214]
mov word [ebp + edx*2 - 0x208], 0
push 0
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x214]
mov edx, dword [ebp - 0x214]
mov eax, dword [ebp + 0xc]
mov dx, word [eax + edx*2]
mov word [ebp + ecx*2 - 0x208], dx
jmp 0x100011ce
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0xffffffff
je 0x100012b5
mov ecx, dword [ebp - 0x210]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x218], edx
push 0
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [ebp - 0x210]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x100012b7
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4063ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4063de
xor eax, eax
test eax, eax
je 0x4063f1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4063f1
xor ecx, ecx
jmp 0x4063f4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4064db
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x406512
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4064ec
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4064e7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406543
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x406525
pop edi
not eax
pop esi
ret 0xc

Function at 0x4058f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x40ef40]
mov dword [0x40f180], eax
mov ecx, dword [0x40f180]
mov dword [0x40f17c], ecx
mov dword [0x40f170], 0
mov esi, esp
push str.POSIXLY_CORRECT
call dword [sym.imp.ucrtbased.dll_getenv]
add esp, 4
cmp esi, esp
call fcn.004010d7
mov dword [0x40f178], eax
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 0x10]
movsx edx, byte [ecx + eax]
cmp edx, 0x2d
jne 0x405959
mov dword [0x40f174], 2
mov eax, dword [ebp + 0x10]
add eax, 1
mov dword [ebp + 0x10], eax
jmp 0x4059a1
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 0x10]
movsx ecx, byte [eax + edx]
cmp ecx, 0x2b
jne 0x405982
mov dword [0x40f174], 0
mov edx, dword [ebp + 0x10]
add edx, 1
mov dword [ebp + 0x10], edx
jmp 0x4059a1
cmp dword [0x40f178], 0
je 0x405997
mov dword [0x40f174], 0
jmp 0x4059a1
mov dword [0x40f174], 1
mov eax, dword [ebp + 0x10]
pop esi
cmp ebp, esp
call fcn.004010d7
pop ebp
ret
Function at 0x401040
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401057
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401088
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401084
cmp esi, eax
jae 0x401088
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401074
cmp esi, eax
jb 0x40108e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401120
Capabilities:
Get common file path

Disassembly:
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x24]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x406db0
push 0x67
push esi
call edi
push 0x64
push 0x406d48
push 0x6d
push esi
call edi
mov eax, esi
call fcn.00401240
push 0x6d
push esi
mov dword [0x406d44], esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push 0x4f10
mov edi, eax
call fcn.00402b37
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 4
push 0x3f2
call esi
push 0x271a
call esi
push 0x40ee18
push 0
push 0
push 9
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov esi, dword [sym.imp.MSVCR90.dll_strcat_s]
push 0x4042c0
push 0x104
push 0x40ee18
call esi
push str.errors
push 0x104
push 0x40ee18
call esi
push 0x4f10
call fcn.00402b37
add esp, 0x1c
call fcn.00401e00
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
je 0x401228
push ebx
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
push ebp
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push edi
push edx
call ebx
test eax, eax
jne 0x401215
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
call esi
test eax, eax
jne 0x4011f2
pop ebp
pop ebx
mov eax, dword [esp + 0x10]
pop edi
pop esi
add esp, 0x1c
ret 0x10
Function at 0x402290
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4039cb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
push esi
mov eax, dword [0x40601c]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x402363
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
call fcn.00402460
lea edx, [esp + 8]
mov dword [esp + 0x98], 0
mov ecx, dword [esp + 0xc]
push edx
call fcn.00402380
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x402327
push eax
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
mov edx, dword [0x406534]
mov eax, dword [esp + 8]
push edx
push eax
call dword [sym.imp.MSVCR90.dll_fputs]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402363
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x94
ret

Function at 0x402ef4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40601c]
jne 0x402efe
repz ret
jmp fcn.004033b2
Function at 0x4060ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406112
xor eax, eax
test eax, eax
je 0x406124
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406124
xor ecx, ecx
jmp 0x406127
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4061d1
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42cdfc], 0
push esi
jne 0x406208
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4061e2
mov dword [ecx*4 + 0x42cdf8], eax
inc ecx
cmp ecx, 0x100
jl 0x4061dd
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406239
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42cdf8]
xor eax, esi
inc ecx
dec edx
jne 0x40621b
pop edi
not eax
pop esi
ret 0xc

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x211901b7
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3b8238c3
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x405e80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x240
lea eax, [esp + 0x13c]
push ebx
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x148]
push str.svchost.exe
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
jne 0x405f83
lea edx, [esp + 0x148]
push 0x409eb0
push edx
call sub.MSVCRT.dll_fopen
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x405f83
lea eax, [esp + 0xc]
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call fcn.00405830
add esp, 0x14
test al, al
je 0x405f6b
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x68]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00405970
add esp, 0x10
mov edi, eax
push 0x40
push 0x1000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x405f83
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 0x6c]
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
push ebx
call fcn.00405a00
mov eax, dword [esp + 0x24]
push edi
push esi
lea ecx, [esp + 0x88]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x50]
push edx
push eax
call fcn.00405c90
add esp, 0x30
push ebx
call sub.MSVCRT.dll_fclose
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x240
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x240
ret

Function at 0x406182
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [ecx + ecx - 0x35]
or edx, 0xffffffc3
sub cl, 0xea
jmp 0x406142
xchg cl, cl
nop
adc word [eax + 0x40d200], 0xe597
xchg edx, ecx
jmp 0x406092
cld
mov ch, 0x32
jge 0x4060ce
and al, 0xff
not ecx
sbb dh, dh
xor eax, 0xffffffb0
cmp edx, 0x2d
jmp loc.00413bfb
lea edx, [eax - 0x6b]
sub eax, 2
jmp 0x406119
push 0x6a1e
clc
pop eax
setbe dh
cld
xchg ecx, ecx
mov cl, bl
xchg ecx, edx
nop
xchg edx, edx
not edx
xchg edx, ecx
xchg ecx, edx
xchg ecx, edx
mov cl, 0xf3
xchg edx, ecx
jmp 0x4060ce
Function at 0x10001160
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
mov esi, eax
push 0
mov dword [esi + 4], 0
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x10001213
push 0
push 0
push 0
push 0
mov dword [esp + 0x18], esi
call edi
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0xc], eax
je 0x10001206
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x100012f0
push 0
push 0
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 8], eax
je 0x100011ff
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x18]
push edx
push 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x100011fa
mov eax, dword [esp + 0xc]
push eax
call edi
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret
call fcn.100012b0
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov edx, dword [esi + 0xc]
push edx
call edi
mov dword [esi + 0xc], 0
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x10001490
Capabilities:
Link many functions at runtime

Disassembly:
push str.LogManage.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
jne 0x100014a5
or eax, 0xffffffff
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
push eax
call edi
test eax, eax
jne 0x100014bc
mov eax, 0xfffffffe
pop edi
ret
call eax
mov eax, dword [esi]
push 3
push eax
call edi
mov ecx, dword [esi]
push 4
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push 5
push edx
mov dword [esi + 4], eax
call edi
mov dword [esi + 0x10], eax
mov eax, dword [esi]
push 6
push eax
call edi
cmp dword [esi + 0xc], 0
mov dword [esi + 8], eax
je 0x10001512
cmp dword [esi + 4], 0
je 0x10001512
cmp dword [esi + 0x10], 0
je 0x10001512
test eax, eax
je 0x10001512
lea ecx, [esi + 0x14]
mov eax, 0x10005300
mov edx, 0x104
call fcn.10001410
xor eax, eax
pop edi
ret
mov eax, 0xfffffffd
pop edi
ret
Function at 0x10001720
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x100040cc
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10007020]
xor eax, esp
mov dword [esp + 0x130], eax
mov eax, dword [0x10007020]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
push str.SYSTEMCurrentControlSetServicesTcpipParametersInterfaces_
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x144], 0
call dword [0x100050e8]
cmp dword [esp + 0x28], 0x10
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 0x104
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
jae 0x100017a3
lea eax, [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001812
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push str.NameServer
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001812
cmp dword [esp + 8], 4
jbe 0x10001812
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, 1
jmp 0x10001834
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x140], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.100036c0
add esp, 0x140
ret
Function at 0x10001860
Capabilities:
Get local ipv4 addresses

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push 0x288
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x100018e6
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp esi, 0x6f
mov dword [esp + 0x10], ebx
jne 0x100018e2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.1000317a
add esp, 4
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
je 0x100018e2
mov eax, dword [esp + 0x10]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
mov edi, dword [esp + 0x10]
test edi, edi
mov dword [esp + 0x18], ebx
mov ebx, edi
je 0x10001956
lea esi, [ebx + 8]
call fcn.10001720
test eax, eax
je 0x1000192a
lea ecx, [ebx + 0x1b0]
push ecx
push 0x10005354
push 0x20
push ebp
call dword [sym.imp.MSVCR80.dll_sprintf_s]
add esp, 0x10
mov edi, str.0.0.0.0
mov esi, ebp
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov edi, dword [esp + 0x10]
jne 0x10001945
mov ebx, dword [ebx]
test ebx, ebx
jne 0x100018f0
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [esp + 0x1c]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push edi
mov dword [esp + 0x1c], 1
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x10001970
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x100041fc
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10007020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
lea eax, [esi + 0x18]
mov dword [esi + 0x10], 0xffffffff
push eax
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CNetpcap.0
push 0x104
lea ecx, [esi + 0x44]
push edi
push ecx
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push str.mtcomm.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esi + 0x180], eax
mov dword [esi + 0x184], edi
mov dword [esi + 0x188], edi
mov dword [esi + 0x18c], edi
mov dword [esi + 0x194], edi
mov dword [esi + 0x198], edi
mov dword [esi + 0x190], edi
mov dword [esi + 0x19c], edi
mov byte [esp + 0x14], 4
call fcn.10002d10
mov dword [esi + 0x1a8], eax
mov ecx, 1
mov byte [eax + 0x1e], cl
mov eax, dword [esi + 0x1a8]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x1a8]
mov dword [eax], eax
mov eax, dword [esi + 0x1a8]
mov dword [eax + 8], eax
mov dword [esi + 0x1ac], edi
mov dword [esi + 0x1b4], edi
mov dword [esi + 0x1b8], edi
mov dword [esi + 0x1a0], edi
mov dword [esi + 0x1b0], edi
mov dword [esi + 0x2f4], 0xffffffff
mov dword [esi + 0x2f8], 0xffffffff
mov dword [esi + 0x15c], ecx
lea ecx, [esi + 0x1bc]
mov eax, 0x1000528b
mov edx, 0x104
mov dword [esi + 0x158], edi
mov dword [esi + 0x164], edi
mov dword [esi + 0x178], edi
mov dword [esi + 0x2c0], edi
mov dword [esi + 0x17c], edi
mov dword [esi + 0x168], str.19EE542D_FA2D_4E29_B203_5906C3B07336_SHARE_MEM_NET_DATA
mov dword [esi + 0x170], str.A42CD282_0145_407C_A5BE_DBD4CF798577_MUTXE_STRATEGY
mov dword [esi + 0x16c], str.7A6865BB_6763_4408_9508_29F8BA08E959_SHARE_MEM_STRATEGY
mov dword [esi + 0x174], str.2E842BA3_8BF9_4E0C_AA44_D97284D9E86D_SHARE_MEM_LOCA_LBLST
call fcn.10001410
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4