joyce8/EMBER2024-capa huggingface dataset:
Function at 0x667fd864
Capabilities:
Get file version info
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x488
mov eax, dword [0x6680448c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, 0x82
xor eax, eax
mov word [ebp - 0x260], bx
mov ecx, esi
lea edi, [ebp - 0x25e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x474]
push eax
push 0x20019
push ebx
push 0x667f1cd0
push 0x80000002
mov dword [ebp - 0x474], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x667fd9ad
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x47c]
push eax
push ebx
push ebx
push dword [ebp - 0x474]
mov dword [ebp - 0x480], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
mov dword [ebp - 0x478], eax
jne 0x667fd941
cmp dword [ebp - 0x47c], 2
jne 0x667fd941
xor eax, eax
mov ecx, esi
mov word [ebp - 0x46c], bx
lea edi, [ebp - 0x46a]
rep stosd dword es:[edi], eax
mov esi, 0x105
push esi
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push esi
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push dword [ebp - 0x474]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x478], ebx
jne 0x667fd9ad
lea eax, [ebp - 0x488]
push eax
lea eax, [ebp - 0x260]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x667fd9ad
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x667fd9ad
push esi
push edi
push ebx
lea eax, [ebp - 0x260]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x667fd9ad
lea eax, [ebp - 0x484]
push eax
lea eax, [ebp - 0x470]
push eax
push 0x667f1cc4
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x667fd9b4
xor eax, eax
jmp 0x667fda36
add dword [ebp - 0x470], 0x10
mov eax, dword [ebp - 0x470]
mov word [ebp - 0x54], bx
movzx eax, word [eax + 2]
push eax
push 0x667f1cbc
lea eax, [ebp - 0x54]
push 0x28
push eax
call fcn.667fd836
mov eax, dword [ebp - 0x470]
mov eax, dword [eax]
and eax, 0xffff
push eax
lea eax, [ebp - 0x54]
push eax
push 0x667f1cac
push 0x28
push eax
call fcn.667fd836
mov eax, dword [ebp - 0x470]
movzx eax, word [eax + 6]
push eax
lea eax, [ebp - 0x54]
push eax
push 0x667f1c9c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x34
push 0x667f1c84
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
cmp edi, ebx
setge al
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6680214e
leave
ret
Function at 0x667fe639
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x6680448c]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x208]
push eax
push 0xf003f
xor esi, esi
push esi
push edx
push ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x667fe6e6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x667fe698
mov ecx, dword [ebp - 0x208]
lea edx, [ebp - 0x204]
call fcn.667fe639
cmp eax, esi
mov dword [ebp - 0x214], eax
jne 0x667fe6f1
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x667fe67d
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x210]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
call fcn.6680214e
leave
ret
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
jmp 0x667fe6e5

Function at 0x667fe78d
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x6680448c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push ecx
mov dword [ebp - 4], eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x804]
push eax
mov dword [ebp - 0x80c], edx
call fcn.667f71df
xor eax, eax
cmp dword [ebp - 0x80c], eax
je 0x667fe7f3
push 0x667f1d8c
push esi
lea eax, [ebp - 0x804]
push eax
call fcn.667f72cc
push dword [ebp - 0x80c]
lea eax, [ebp - 0x804]
push esi
push eax
call fcn.667f72cc
xor eax, eax
push eax
lea ecx, [ebp - 0x808]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x804]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x667fe81e
xor eax, eax
jmp 0x667fe84f
test edi, edi
je 0x667fe840
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ebx
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6680214e
leave
ret 8
Function at 0x668009f8
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x6680448c]
push ebx
push esi
push edi
mov edi, 0x80000002
push edi
push 0x667f1e90
lea ecx, [ebp - 0xf0]
mov dword [ebp - 4], eax
mov dword [ebp - 0xe4], 1
xor esi, esi
xor ebx, ebx
call fcn.667f2eeb
cmp dword [ebp - 0xec], esi
jne 0x66800b53
push esi
push 0x667f2084
lea ecx, [ebp - 0xf0]
call fcn.667f3015
test eax, eax
jle 0x66800b53
push edi
push 0x667f2100
lea ecx, [ebp - 0xfc]
call fcn.667f2eeb
push 0x667f2188
lea ecx, [ebp - 0xfc]
call fcn.667f306a
cmp dword [ebp - 0xf8], esi
jne 0x66800aae
push 0x14
lea eax, [ebp - 0x18]
push eax
push 0x667f21a4
lea ecx, [ebp - 0xfc]
call fcn.667f2fc7
test eax, eax
je 0x66800aae
push 0x667f29a4
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x66800aae
inc ebx
lea ecx, [ebp - 0xfc]
call fcn.667f2f19
cmp ebx, esi
je 0x66800b53
push 1
push 0x30
mov edx, 0x4c5
xor ecx, ecx
call fcn.66801bd7
cmp eax, 1
jne 0x66800b53
push 0x31
pop ebx
push ebx
lea edx, [ebp - 0x7c]
mov ecx, 0x402
call fcn.66800be7
push ebx
lea edx, [ebp - 0xe0]
mov ecx, 0x403
call fcn.66800be7
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [0x6680700c]
cmp eax, esi
jne 0x66800ba6
push ebx
lea edx, [ebp - 0x7c]
mov ecx, 0x404
call fcn.66800be7
push ebx
lea edx, [ebp - 0xe0]
mov ecx, 0x405
call fcn.66800be7
lea eax, [ebp - 0xe0]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [0x6680700c]
push 0x667f2084
lea ecx, [ebp - 0xf0]
call fcn.667f2f9e
push edi
push 0x667f22c8
lea ecx, [ebp - 0x108]
call fcn.667f2eeb
cmp dword [ebp - 0x104], esi
pop edi
pop esi
pop ebx
jne 0x66800b80
push 0x667f2358
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x108]
call fcn.667f2f19
lea ecx, [ebp - 0xf0]
call fcn.667f2f19
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe4]
call fcn.6680214e
leave
ret
push esi
push 0x30
push 2
push eax
push 0x460
push esi
call fcn.66801d17
add esp, 0x18
mov dword [ebp - 0xe4], esi
jmp 0x66800b53
Function at 0x66800cd3
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push 0x667f2ac0
push 0x80000001
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], ebx
je 0x66800d7e
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
mov esi, 0x667f2a98
push esi
push dword [ebp - 8]
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push esi
push dword [ebp - 8]
call edi
test byte [ebp - 4], 5
je 0x66800d4f
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x18], ebx
je 0x66800d5a
or dword [ebp - 4], 5
jmp 0x66800d5e
and dword [ebp - 4], 0xfffffffa
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x66800e6a
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x6680448c]
push ebx
push esi
push edi
xor esi, esi
mov ebx, ecx
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], si
mov ecx, 0x82
lea edi, [ebp - 0x20e]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push 0x667f2238
mov dword [ebx], esi
push 0x80000002
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x214], esi
mov dword [edx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x66800f69
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x224], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x214]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, esi
jne 0x66800f69
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, esi
mov dword [ebp - 0x220], eax
je 0x66800f69
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
cmp edi, esi
je 0x66800f69
push edi
push dword [ebp - 0x220]
lea eax, [ebp - 0x210]
push esi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x66800f69
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x667f1d8c
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x66800f6d
xor eax, eax
jmp 0x66800f8d
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax + 0x10]
mov dword [ebx], ecx
mov eax, dword [eax + 0x14]
mov ecx, dword [ebp - 0x21c]
push edi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.6680214e
leave
ret
Function at 0x66800f9f
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x6680448c]
push ebx
push esi
push edi
mov esi, 0x667f2bb8
lea edi, [ebp - 0x210]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x7e
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x200]
rep stosd dword es:[edi], eax
xor ebx, ebx
push ebx
mov dword [ebp - 0x218], ebx
stosw word es:[edi], ax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x21c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x66801071
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x66801071
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
je 0x66801071
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x66801071
push esi
push edi
push ebx
lea eax, [ebp - 0x210]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x6680106a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x667f2b84
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x6680106a
mov eax, dword [ebp - 0x214]
movzx ebx, word [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
pop ebx
call fcn.6680214e
leave
ret

Function at 0x668010ff
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push 0x667f2be8
push 0x80000002
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x668011c0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, 0x667f2bc8
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x668011be
cmp dword [ebp - 8], ebx
je 0x668011be
push dword [ebp - 8]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x668011be
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 4]
call esi
test eax, eax
jne 0x668011b5
cmp dword [ebp - 0xc], 7
jne 0x668011b5
mov esi, dword [ebp - 0x10]
jmp 0x668011a7
push dword [ebp - 0x18]
push esi
call dword [sym.imp.msvcrt.dll_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x668011ae
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
jne 0x6680118c
jmp 0x668011b5
mov dword [ebp - 0x14], 1
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
cmp dword [ebp - 4], ebx
pop ebx
je 0x668011cf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x401000
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, dword [0x40e898]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
sub esp, 8
or ecx, edx
jge 0x401031
mov ecx, 0x104
mov eax, 0x40e898
call fcn.004012c0
mov eax, dword [0x40e898]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [0x40e898]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.00401e11
add esp, 8
test eax, eax
jl 0x40111c
mov ecx, dword [0x40e898]
cmp eax, dword [ecx - 8]
jg 0x40111c
mov dword [ecx - 0xc], eax
mov edx, dword [0x40e898]
push esi
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [esp + 0x18]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x40e894], eax
mov edi, 1
test eax, eax
je 0x4010a4
push str.o003
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4010a4
call eax
mov edi, eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401150
mov eax, dword [eax]
add esp, 4
push eax
push 1
push str.CanShow
push str.Config
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4010e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 8]
push ecx
mov edx, edi
mov ecx, esi
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0
call fcn.00401560
lea esi, [esp + 8]
call fcn.004016e0
pop edi
mov eax, 1
pop esi
add esp, 8
ret 0x10
mov eax, 0x80070057
call fcn.004013d0
int3

Function at 0x4013f0
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenServiceW]
push 0xf01ff
mov esi, eax
push str.LanEx_Device
push esi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x401438
lea eax, [esp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push edi
call ebp
push 0xf01ff
push str.LanEx_Device
push esi
call ebx
mov edi, eax
test edi, edi
je 0x401455
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call ebp
push esi
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret
Function at 0x401560
Capabilities:
Delete file
Get common file path
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x409018
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x40d13c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, dword [esp + 0x1c]
mov dword [eax], ecx
mov edx, dword [0x40dcec]
mov eax, dword [edx + 0xc]
mov ecx, 0x40dcec
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
test edi, edi
je 0x4015e1
or eax, ecx
jge 0x4015d3
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.004012c0
mov esi, dword [esp + 0x1c]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x401603
or eax, ecx
jge 0x4015f7
mov ecx, 0x104
lea eax, [esp + 0x1c]
call fcn.004012c0
mov esi, dword [esp + 0x1c]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00401e11
add esp, 8
test eax, eax
jl 0x4016d0
cmp eax, dword [esi - 8]
jg 0x4016d0
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x401640
push str.drivers_
lea edx, [esp + 0x20]
push edx
lea eax, [ecx + 9]
call fcn.00401750
push str.LanEx.sys
lea eax, [esp + 0x20]
push eax
mov eax, 9
call fcn.00401750
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x40bae0
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40167e
push esi
call fcn.00401810
add esp, 4
push str.load_Dr_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x1c]
push ecx
push esi
call fcn.00401470
mov edi, eax
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4016ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
mov eax, 0x80070057
call fcn.004013d0
int3

Function at 0x4016e0
Capabilities:
Print debug messages

Disassembly:
push ecx
cmp dword [esi], 0
je 0x40174c
cmp dword [esi + 4], 0
jne 0x40170c
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push str..LanEx_Device
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp dword [esi + 4], 0xffffffff
jne 0x401719
call fcn.004013f0
pop ecx
ret
push 0x40bb1c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0x8000c018
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x401810
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401878
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401877
mov eax, dword [esp + 0x14]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401877
test esi, esi
je 0x401877
push 0
lea ecx, [esp + 0x10]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x401c73
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d13c]
jne 0x401c7d
repz ret
jmp fcn.00403480

Function at 0x404433
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402c0c
and dword [ebp - 4], 0
cmp dword [0x40e734], 0
mov ebx, eax
jne 0x4044e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404595
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404595
push eax
call fcn.00402b9a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e734], eax
call esi
push eax
call fcn.00402b9a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e738], eax
call esi
push eax
call fcn.00402b9a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40e73c], eax
call esi
push eax
call fcn.00402b9a
pop ecx
mov dword [0x40e744], eax
test eax, eax
je 0x4044e4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402b9a
pop ecx
mov dword [0x40e740], eax
mov eax, dword [0x40e740]
cmp eax, ebx
je 0x40453c
cmp dword [0x40e744], ebx
je 0x40453c
push eax
call fcn.00402c15
push dword [0x40e744]
mov esi, eax
call fcn.00402c15
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40453c
test edi, edi
je 0x40453c
call esi
test eax, eax
je 0x404533
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404533
test byte [ebp - 0xc], 1
jne 0x40453c
or dword [ebp + 0x10], 0x200000
jmp 0x404575
mov eax, dword [0x40e738]
cmp eax, ebx
je 0x404575
push eax
call fcn.00402c15
pop ecx
test eax, eax
je 0x404575
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404575
mov eax, dword [0x40e73c]
cmp eax, ebx
je 0x404575
push eax
call fcn.00402c15
pop ecx
test eax, eax
je 0x404575
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e734]
call fcn.00402c15
pop ecx
test eax, eax
je 0x404595
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404597
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret