joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40828a
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0x474
mov eax, 0x42e56e
call fcn.00409f31
mov esi, ecx
mov ebx, dword [ebp + 8]
xor eax, eax
mov edi, dword [ebp + 0xc]
and dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
and dword [ebp - 4], eax
lea eax, [ebp - 0x468]
push eax
push edi
call fcn.004080e5
test al, al
je 0x408407
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00417110
mov ecx, dword [0x442a00]
lea eax, [ebp - 0x218]
add esp, 0xc
push eax
push ebx
call fcn.0040642f
mov ecx, eax
call fcn.004063a4
push 0x42f46c
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00403b6f
lea ecx, [ebp - 0x218]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00403b4c
add esp, 0x18
push 0
push 1
lea ecx, [ebp - 0x480]
mov byte [ebp - 4], 3
call fcn.0040306a
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
push 0
cmovae eax, dword [ebp - 0x450]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp dword [ebp - 0x43c], 8
lea eax, [ebp - 0x450]
cmovae eax, dword [ebp - 0x450]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4083f8
and dword [ebp - 0x428], 0
xor eax, eax
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea eax, [ebp - 0x438]
mov byte [ebp - 4], 4
push eax
push edi
mov ecx, esi
call fcn.0040821c
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push ebx
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push str.__s___untie__s
push eax
call fcn.0040342b
lea eax, [ebp - 0x420]
push eax
call fcn.00403d0d
add esp, 0x14
lea ecx, [ebp - 0x438]
push 0
push 1
call fcn.0040306a
push 0
push 1
lea ecx, [ebp - 0x450]
call fcn.0040306a
push 0
push 1
lea ecx, [ebp - 0x468]
call fcn.0040306a
call fcn.00409eec
ret 8
Function at 0x4095f7
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push 0xc70
mov eax, 0x42e7d7
call fcn.00409f31
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc18]
push 0x3e8
xor edi, edi
push edi
push eax
call fcn.00417110
mov ebx, 0x208
lea eax, [ebp - 0x830]
push ebx
push edi
push eax
call fcn.00417110
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x40963b
mov esi, dword [esi]
push str._install
call fcn.00419744
inc eax
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.004196f1
mov ecx, dword [0x442a00]
lea eax, [ebp - 0x830]
add esp, 0xc
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.0040642f
mov ecx, eax
call fcn.004063a4
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00417110
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004196f1
push ebx
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.00417110
push ebx
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00417110
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00419722
lea eax, [ebp - 0x628]
push eax
call fcn.0041998b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00419722
lea eax, [ebp - 0x420]
push eax
call fcn.0041998b
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0041c8c4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x40
test eax, eax
je 0x409743
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409743
lea eax, [ebp - 0x218]
push eax
call esi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0xc7c]
call fcn.00406aa4
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push 1
lea ecx, [ebp - 0xc7c]
call fcn.00407a8a
lea eax, [ebp - 0x218]
push eax
call esi
mov ecx, dword [0x442a00]
call fcn.0040642b
mov ecx, eax
call fcn.00401620
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
push edi
push 0x42f8ac
push str.IsModifyCellDict
mov ebx, str.SetModify
push ebx
call esi
push edi
push 0x42f8ac
push str.IsModifyCellDict64
push ebx
call esi
lea ecx, [ebp - 0xc7c]
call fcn.00406b9e
call fcn.00409eec
ret
Function at 0x4099ef
Capabilities:
Check if file exists
Copy file
Delete file
Get common file path

Disassembly:
push 0xc70
mov eax, 0x42e7d7
call fcn.00409f31
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc18]
push 0x3e8
xor edi, edi
push edi
push eax
call fcn.00417110
mov ebx, 0x208
lea eax, [ebp - 0x830]
push ebx
push edi
push eax
call fcn.00417110
add esp, 0x18
cmp dword [esi + 0x14], 8
jb 0x409a33
mov esi, dword [esi]
push str._untie
call fcn.00419744
inc eax
lea eax, [esi + eax*2]
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.004196f1
mov ecx, dword [0x442a00]
lea eax, [ebp - 0x830]
add esp, 0xc
push eax
lea eax, [ebp - 0xc18]
push eax
call fcn.0040642f
mov ecx, eax
call fcn.004063a4
push ebx
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00417110
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004196f1
push ebx
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.00417110
push ebx
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00417110
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00419722
lea eax, [ebp - 0x628]
push eax
call fcn.0041998b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00419722
lea eax, [ebp - 0x420]
push eax
call fcn.0041998b
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0041c8c4
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x40
test eax, eax
je 0x409b3b
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409b3b
lea eax, [ebp - 0x218]
push eax
call esi
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc18]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [ebp - 0xc7c]
call fcn.00406aa4
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push edi
lea ecx, [ebp - 0xc7c]
call fcn.00407a8a
lea eax, [ebp - 0x218]
push eax
call esi
mov ecx, dword [0x442a00]
call fcn.0040642b
mov ecx, eax
call fcn.00401620
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
push edi
push 0x42f8ac
push str.IsModifyCellDict
mov ebx, str.SetModify
push ebx
call esi
push edi
push 0x42f8ac
push str.IsModifyCellDict64
push ebx
call esi
lea ecx, [ebp - 0xc7c]
call fcn.00406b9e
call fcn.00409eec
ret
Function at 0x40aff0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e8c3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43e054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x442d88
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x442d88
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x42f845
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0040eae0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40efd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ece8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x43e054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040eeb0
cmp dword [ebp - 0x3c], 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x50]
push eax
call fcn.00410b40
mov ebx, eax
test ebx, ebx
jne 0x40f037
xor esi, esi
jmp 0x40f173
push ebx
lea eax, [ebp - 0x68]
push 0x4108e0
push eax
call fcn.0040ec80
add esp, 0xc
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
push ebx
call fcn.004109f0
test eax, eax
je 0x40f062
xor esi, esi
jmp 0x40f167
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00403204
cmp dword [esi + 0x14], 8
mov byte [ebp - 4], 2
jb 0x40f08e
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40f0be
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x40f0be
push 0x42f46c
lea ecx, [ebp - 0x28]
call fcn.0040ed20
cmp dword [ebp - 0x34], 0
mov dword [ebp - 0x54], 0
jb 0x40f139
ja 0x40f0d3
cmp dword [ebp - 0x38], 0
jbe 0x40f139
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, edi
cmovae eax, dword [ebp - 0x28]
push eax
push ebx
call fcn.0040f1e0
test eax, eax
je 0x40f135
mov esi, dword [ebp - 0x38]
mov eax, esi
mov edi, dword [ebp - 0x34]
add eax, 0xffffffff
mov dword [ebp - 0x58], eax
mov ecx, edi
mov eax, dword [ebp - 0x54]
adc ecx, 0xffffffff
cdq
cmp edx, ecx
ja 0x40f11d
jb 0x40f10d
cmp eax, dword [ebp - 0x58]
jae 0x40f11d
push ebx
call fcn.00410a90
test eax, eax
jne 0x40f135
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cdq
cmp edx, edi
jb 0x40f130
ja 0x40f139
cmp eax, esi
jae 0x40f139
nop
mov edi, dword [ebp - 0x5c]
jmp 0x40f0d3
xor esi, esi
jmp 0x40f13e
mov esi, 1
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f153
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040f820
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x68]
push eax
call fcn.0040ecb0
add esp, 4
mov eax, dword [ebp - 0x3c]
cmp eax, 0x10
jb 0x40f1bd
mov ecx, dword [ebp - 0x50]
inc eax
cmp eax, 0x1000
jb 0x40f1b4
test cl, 0x1f
je 0x40f190
call fcn.004196a1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x40f19c
call fcn.004196a1
sub ecx, eax
cmp ecx, 4
jae 0x40f1a8
call fcn.004196a1
cmp ecx, 0x23
jbe 0x40f1b2
call fcn.004196a1
mov ecx, eax
push ecx
call fcn.00409ec1
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409ec6
mov esp, ebp
pop ebp
ret 8
Function at 0x411fa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp + 8], edx
cmp dword [edi + 0x6c], eax
jb 0x41202f
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.00416610
mov edx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x411fff
sub eax, esi
jmp 0x412001
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x411ff0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x412020
sub eax, esi
jmp 0x412022
xor eax, eax
mov word [ecx], ax
sub edx, 1
jne 0x412011
mov edx, dword [ebp + 8]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x412159
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
jne 0x41205c
xor eax, eax
jmp 0x4120a5
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x412079
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004159c0
jmp 0x412089
cmp eax, 2
jne 0x41208f
push ecx
push dword [ebx]
push dword [ebx + 0x30]
call fcn.004122d0
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x30], eax
push ecx
push dword [ebx]
push dword [ebp - 4]
call fcn.00416610
mov eax, dword [ebp + 8]
add esp, 0xc
add dword [ebx], eax
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x4120cd
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x4120e1
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x411fb0
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x412159
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x412129
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
mov dword [ebp + 8], ecx
push 0
push eax
call fcn.00417110
mov eax, dword [ebp + 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x412159
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
add eax, edx
push esi
push 0
push eax
call fcn.00417110
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428038
Capabilities:
Set environment variable

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

Function at 0x42944d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004292cc
Function at 0x1004e70
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100913c]
and dword [ebp - 0x30], 0
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0x10
push dword [ebp + 0x14]
push esi
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
je 0x1004efa
cmp eax, 0x251d
jne 0x1004ece
push dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
call fcn.01006c0e
lea eax, [ebp - 0x2c]
push eax
push esi
push 0x277a
push dword [ebp + 0xc]
push edi
jmp loc.01018000
cmp eax, 0x232b
jne 0x1004edd
push esi
push 0x277b
jmp 0x1004eea
cmp eax, 0x25e5
je 0x1004ef6
push esi
push 0x277c
push dword [ebp + 0xc]
push edi
call fcn.010057d0
add esp, 0x10
xor eax, eax
jmp 0x1004f2b
cmp dword [ebp - 0x30], 0
je 0x1004f28
push esi
push 0x277d
push dword [ebp + 0xc]
push edi
call fcn.010057d0
add esp, 0x10
push dword [ebp - 0x30]
push dword [ebp + 0xc]
push edi
call fcn.01004e49
push 1
push dword [ebp - 0x30]
call sub.DNSAPI.dll_DnsRecordListFree
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100646d
leave
ret 0x10

Function at 0x100516d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x618], eax
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
jbe 0x1005289
mov edi, dword [ebp + 0x18]
push ebx
xor ebx, ebx
push esi
inc ebx
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x61c]
mov ecx, dword [ebp - 4]
push dword [ebp + 0x14]
mov esi, dword [eax + ecx*4]
push esi
call fcn.01004706
test eax, eax
je 0x100526c
test esi, esi
je 0x100526c
inc dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
push 2
push ebx
push esi
call fcn.01002b0e
mov edi, eax
test edi, edi
je 0x10051e6
push edi
push 0xe
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100589e
jmp 0x100526c
cmp dword [ebp + 0x18], 0
jne 0x10051f3
mov dword [ebp + 0x18], 0x100153c
push dword [ebp + 0x18]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x18]
push ebx
push 0
push 0x1001454
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xb
pop ecx
xor eax, eax
push eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push 0
mov dword [ebp - 0x28], ebx
call sub.DHCPCSVC.DLL_DhcpHandlePnPEvent
push dword [esi + 0x30c]
mov edi, eax
test edi, edi
je 0x1005259
push edi
push 0x2766
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0100581e
jmp 0x100526c
push 0x2767
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010057d0
add esp, 0x10
inc dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 0x618]
jb 0x1005195
cmp dword [ebp - 8], 0
pop esi
pop ebx
jne 0x10052a1
push 0x275f
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.010057d0
add esp, 0xc
mov edi, 0x490
mov eax, edi
pop edi
leave
ret 0x14
Function at 0x4020d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x46556c
push 2
call fcn.0040c090
add esp, 4
push eax
call fcn.00403b40
add esp, 0xc
push 2
call fcn.00417640
pop ebp
ret

Function at 0x403b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4a0510]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041a329
add esp, 4
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
jne 0x403ca9
mov dword [ebp - 0x108], 0
jmp 0x403bcd
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 2
jge 0x403ca9
lea edx, [ebp - 0x110]
push edx
push 0x20019
push 0
push str.SoftwareVI_Like_EmacsEnvironment
mov eax, dword [ebp - 0x108]
mov ecx, dword [eax*4 + 0x49ff20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403ca4
mov dword [ebp - 0x10c], pe_nt_image_headers32
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403c97
cmp dword [ebp - 0x10c], 0
je 0x403c97
mov eax, dword [ebp - 0x10c]
sub eax, 1
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0x100
jae 0x403c60
jmp 0x403c65
call fcn.00406fa0
mov ecx, dword [ebp - 0x118]
mov byte [ebp + ecx - 0x104], 0
lea edx, [ebp - 0x104]
push edx
call fcn.00403cc0
add esp, 4
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403ca9
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x403bbe
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004070a0
mov esp, ebp
pop ebp
ret
Function at 0x404220
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 0x10], 0
jne 0x404248
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
push 0x49fed4
call fcn.00404710
add esp, 8
push 0x400
push 0
push 0x4a20e0
call fcn.00408380
add esp, 0xc
mov dword [ebp - 8], 1
jmp 0x40426e
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 8]
jge 0x404404
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], 0
jne 0x40429d
mov eax, dword [ebp - 4]
push eax
push 0x49fedc
call fcn.00404710
add esp, 8
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x2d
jne 0x4043fd
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x4043fb
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov edx, dword [ecx*4 + 0x4a20e0]
add edx, 1
mov eax, dword [ebp - 4]
movzx ecx, byte [eax]
mov dword [ecx*4 + 0x4a20e0], edx
mov edx, dword [ebp - 4]
mov al, byte [edx]
mov byte [ebp - 0x10], al
cmp byte [ebp - 0x10], 0x6b
je 0x4042f9
cmp byte [ebp - 0x10], 0x74
je 0x404337
jmp 0x40438c
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004041a0
add esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], 0
je 0x404332
mov edx, dword [ebp - 0xc]
push edx
call fcn.004053d0
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.00405780
add esp, 4
jmp 0x4043f6
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.004041a0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.0041a110
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, 4
imul ecx, eax, 0x74
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x4a20e0], edx
cmp dword [ebp - 0x14], 0
jg 0x40438a
mov eax, 4
imul ecx, eax, 0x74
mov dword [ecx + 0x4a20e0], 8
jmp 0x4043f6
cmp dword [0x45f010], 0
je 0x4043af
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
push eax
mov ecx, dword [0x45f010]
push ecx
call fcn.00408250
add esp, 8
test eax, eax
je 0x4043b8
cmp dword [0x45f010], 0
jne 0x4043f6
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
push eax
push str.ivqQ
call fcn.00408250
add esp, 8
test eax, eax
jne 0x4043f6
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
push edx
push str.unknown_option__c_n
push 2
call fcn.0040c090
add esp, 4
push eax
call fcn.00403b40
add esp, 0xc
push 1
call fcn.00417640
jmp 0x4042ac
jmp 0x4043ff
jmp 0x404404
jmp 0x404265
cmp dword [ebp + 0x10], 0
jne 0x404426
push 1
call fcn.0040c090
add esp, 4
push eax
push 1
push 1
push 0x4a0ef4
call fcn.00418f30
add esp, 0x10
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret