joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472f30
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp dword [eax + 0x2c], 0
push esi
lea esi, [eax + 0x2c]
jne 0x472fb0
cmp dword [eax + 0x28], 8
jb 0x472f46
mov eax, dword [eax + 0x14]
jmp 0x472f49
add eax, 0x14
push 0x4ac218
push eax
push esi
call fcn.0048033c
mov eax, dword [esi]
add esp, 0xc
test eax, eax
je 0x472fb0
push edi
push 2
push 0
push eax
call fcn.004807c9
mov eax, dword [esi]
push eax
call fcn.0048158d
mov ecx, dword [esi]
push 0
push 0
push ecx
mov edi, eax
call fcn.004807c9
add esp, 0x1c
test edi, edi
pop edi
jne 0x472fb0
mov eax, dword [esi]
push eax
push 2
xor edx, edx
lea ecx, [esp + 0xc]
mov word [esp + 0xd], dx
push 1
push ecx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
mov byte [esp + 0x16], dl
call fcn.00481933
add esp, 0x10
xor eax, eax
cmp dword [esi], eax
pop esi
setne al
pop ecx
ret

Function at 0x472fc0
Capabilities:
Get file size
Move file
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x49eb68
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4c591c]
mov ebx, 8
cmp dword [0x4c5930], ebx
jae 0x472ffd
mov eax, 0x4c591c
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4730d6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473033
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, 0x80000
jb 0x4730d6
mov ecx, dword [0x4c591c]
cmp dword [0x4c5930], ebx
jae 0x473059
mov ecx, 0x4c591c
lea eax, [esp + 0x14]
push eax
call fcn.00406d60
lea esi, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.004730f0
mov edi, dword [0x4c591c]
cmp dword [0x4c5930], ebx
jae 0x473087
mov edi, 0x4c591c
mov esi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push esi
call ebx
push 1
push esi
call fcn.00471a90
add esp, 8
push 0
push edi
call ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4730d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret
Function at 0x4763b0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x49db02
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004820f0
add esp, 0xc
push edi
push 0x10
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x476444
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.0040fdc0
mov edi, esi
call fcn.00476860
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0047cee5
add esp, 0x224
ret

Function at 0x476490
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x49db02
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004820f0
add esp, 0xc
push edi
push 0x19
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x476524
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.0040fdc0
mov edi, esi
call fcn.00476860
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0047cee5
add esp, 0x224
ret
Function at 0x476570
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x49db02
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004820f0
add esp, 0xc
push edi
push 2
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x476604
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.0040fdc0
mov edi, esi
call fcn.00476860
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0047cee5
add esp, 0x224
ret

Function at 0x476650
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0xffffffffffffffff
push 0x49db02
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c02a0]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], edi
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x10], esi
mov word [esi + 4], ax
push 0x208
lea edx, [esp + 0x1a]
mov dword [esp + 0x230], edi
xor ecx, ecx
push edi
push edx
mov dword [esp + 0x18], 1
mov word [esp + 0x20], cx
call fcn.004820f0
add esp, 0xc
push edi
push 0x17
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4766e4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
call fcn.0040fdc0
mov edi, esi
call fcn.00476860
mov eax, esi
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0047cee5
add esp, 0x224
ret
Function at 0x47b490
Capabilities:
Connect to http server
Create http request

Disassembly:
push 0xffffffffffffffff
push 0x49ca58
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push edi
mov eax, dword [0x4c02a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [0x4c45ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c45ac
xor ebx, ebx
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ebx
mov eax, dword [esi + 0x54e0]
test eax, eax
jne 0x47b4e0
lea ebx, [eax + 1]
jmp 0x47b513
cmp eax, 2
jne 0x47b513
lea ebx, [eax + 1]
lea eax, [esi + 0x54e4]
lea edi, [esp + 0xc]
call fcn.00404fc0
mov eax, dword [esi + 0x54e8]
test eax, eax
jle 0x47b50f
push eax
push 0x4ac4f8
call fcn.0047bf00
add esp, 8
mov edi, dword [esp + 0xc]
push 0x10000000
push 0
push edi
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_2.0.50727__.NET_CLR_3.0.04506.648__.NET_CLR_3.5.8888.8888__
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x47b562
or ebx, 0xffffffff
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x47b54e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
push 0x47b400
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
or ebx, 0xffffffff
cmp eax, ebx
je 0x47b531
mov edx, dword [esi + 8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 2
push edx
mov dword [esp + 0x20], 0x7530
call dword [sym.imp.WININET.dll_InternetSetOptionW]
movzx eax, word [esi + 0x2014]
mov edx, dword [esi + 8]
push esi
push 0
push 3
push 0
push 0
push eax
lea ecx, [esi + 0x201c]
push ecx
push edx
mov dword [esi + 0x5480], 1
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 0xc], eax
test eax, eax
lea eax, [edi - 0x10]
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
je 0x47b53b
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x47b5e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x47bfa0
Capabilities:
Parse url

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.004820f0
push 0x5418
push 0
push esi
call fcn.004820f0
mov eax, 0x400
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], eax
lea eax, [esi + 0x3008]
lea edx, [esi + 0x2808]
mov dword [esp + 0x34], eax
mov eax, 0x104
lea ecx, [esi + 0x2008]
mov dword [esp + 0x44], edx
lea edx, [esi + 0x3418]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
lea ecx, [esi + 0x3210]
mov eax, edi
mov dword [esp + 0x4c], edx
add esp, 0x18
mov dword [esp], 0x3c
mov dword [esp + 0x24], ecx
mov dword [esp + 0x38], 0x1000
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x47c021
lea ecx, [esp]
push ecx
sub eax, edx
push 0
sar eax, 1
push eax
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x47c07e
mov eax, dword [esp + 0xc]
cmp eax, 3
je 0x47c050
cmp eax, 4
jne 0x47c07e
push edi
push 0x1000
push esi
call fcn.00480146
mov eax, dword [esp + 0x18]
mov dx, word [esp + 0x24]
mov dword [esi + 0x2004], eax
add esp, 0xc
mov word [esi + 0x2000], dx
mov eax, 1
add esp, 0x3c
ret
xor eax, eax
add esp, 0x3c
ret

Function at 0x47c555
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c4600], 0
push esi
jne 0x47c4c8
call fcn.0047c3ee
test eax, eax
je 0x47c50b
mov eax, dword [0x4c4600]
cmp eax, 1
jne 0x47c4e9
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x47c50b
pop esi
ret
push eax
call dword [0x4c4608]
test eax, eax
jne 0x47c553
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x47c50f
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c4600]
call dword [0x4c4608]
mov edi, eax
test edi, edi
je 0x47c534
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x47c550
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4c4600]
call dword [0x4c4604]
add edi, 0x10
cmp edi, esi
jb 0x47c53c
mov eax, edi
pop edi
pop esi
ret
jmp 0x47c4b5

Function at 0x47cee5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c02a0]
jne 0x47ceef
repz ret
jmp fcn.004854bd

Function at 0x480ff1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x481022
call fcn.004828ef
mov dword [eax], esi
call fcn.004828dc
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0047d07c
add esp, 0x14
push 0x16
pop eax
jmp 0x481077
test dword [ebp + 0xc], 0xfffffff9
jne 0x480ffe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48104f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00482902
pop ecx
call fcn.004828dc
mov eax, dword [eax]
jmp 0x481077
test al, 0x10
jne 0x481075
test al, 1
je 0x481075
test byte [ebp + 0xc], 2
je 0x481075
call fcn.004828ef
mov dword [eax], 5
call fcn.004828dc
mov dword [eax], 0xd
jmp 0x481046
xor eax, eax
pop esi
pop ebp
ret
Function at 0x490cf5
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.00484e21
and dword [ebp - 4], 0
cmp dword [0x4c5330], 0
mov ebx, eax
jne 0x490da6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x490e57
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x490e57
push eax
call fcn.00484daf
mov dword [esp], 0x4a434c
push edi
mov dword [0x4c5330], eax
call esi
push eax
call fcn.00484daf
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4c5334], eax
call esi
push eax
call fcn.00484daf
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4c5338], eax
call esi
push eax
call fcn.00484daf
pop ecx
mov dword [0x4c5340], eax
test eax, eax
je 0x490da6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00484daf
pop ecx
mov dword [0x4c533c], eax
mov eax, dword [0x4c533c]
cmp eax, ebx
je 0x490dfe
cmp dword [0x4c5340], ebx
je 0x490dfe
push eax
call fcn.00484e2a
push dword [0x4c5340]
mov esi, eax
call fcn.00484e2a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x490dfe
test edi, edi
je 0x490dfe
call esi
test eax, eax
je 0x490df5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x490df5
test byte [ebp - 0xc], 1
jne 0x490dfe
or dword [ebp + 0x10], 0x200000
jmp 0x490e37
mov eax, dword [0x4c5334]
cmp eax, ebx
je 0x490e37
push eax
call fcn.00484e2a
pop ecx
test eax, eax
je 0x490e37
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x490e37
mov eax, dword [0x4c5338]
cmp eax, ebx
je 0x490e37
push eax
call fcn.00484e2a
pop ecx
test eax, eax
je 0x490e37
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4c5330]
call fcn.00484e2a
pop ecx
test eax, eax
je 0x490e57
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x490e59
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433710
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x26000]
push edi
jmp 0x43372a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x433731
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x433720
mov eax, 1
add ebx, ebx
jne 0x433743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x433738
jne 0x433754
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x433738
xor ecx, ecx
sub eax, 3
jb 0x433768
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4337da
mov ebp, eax
add ebx, ebx
jne 0x433773
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x433780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4337a4
inc ecx
add ebx, ebx
jne 0x433790
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x433785
jne 0x4337a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x433785
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4337c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4337b5
jmp 0x433726
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4337c4
add edi, ecx
jmp 0x433726
pop esi
mov edi, esi
mov ecx, 0x91a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4337e2
cmp byte [edi], 9
jne 0x4337e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4337e7
lea edi, [esi + 0x31000]
mov eax, dword [edi]
or eax, eax
je 0x43385f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x450d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x451b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x433814
mov ecx, edi
jns 0x433843
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x451b8]
or eax, eax
je 0x433859
mov dword [ebx], eax
add ebx, 4
jmp 0x433831
call dword [esi + 0x451b4]
mov ebp, dword [esi + 0x451bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x433893
sub esp, 0xffffff80
jmp 0x41382f

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x113d8
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 0x206b6444
xor ebx, ebx
push 0x400
push ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, dword [sym.imp.ntoskrnl.exe_wcscat]
mov edi, eax
mov dword [ebp - 0x10], edi
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
push 0x112cc
push dword [ebp - 0x10]
mov word [ebp - 0x12], 0x400
call esi
mov eax, dword [ebp + 8]
add eax, 0xe
push eax
push dword [ebp - 0x10]
call esi
push 0x11390
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ntoskrnl.exe_wcslen]
shl eax, 1
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x14]
add esp, 0x1c
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jl 0x114d2
lea eax, [ebp - 4]
push eax
push 0x113a8
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call fcn.00012e3a
test eax, eax
jl 0x114d2
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
add ecx, eax
push 0x113b4
push ecx
call dword [sym.imp.ntoskrnl.exe_wcsstr]
test eax, eax
pop ecx
pop ecx
je 0x114c7
push 0x113c4
mov dword [ebp - 0xc], 1
call sub.ntoskrnl.exe_DbgPrint
pop ecx
cmp dword [ebp - 4], ebx
je 0x114d2
push ebx
push dword [ebp - 4]
call esi
cmp dword [ebp - 0x10], ebx
je 0x114dd
push ebx
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 8], ebx
pop edi
pop esi
pop ebx
je 0x114ee
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0xc]
leave
ret 4
Function at 0x12244
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push edi
push 0x12226
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 8]
push eax
call fcn.00011ad4
push 0x206b6444
push 0x6c
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edx, eax
push 0x1b
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov byte [edx + 1], al
mov byte [edx], 5
mov eax, dword [ebp - 0x10]
push 0x6c
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0xc]
push edx
mov dword [edx + 0x34], eax
push 0x15378
lea eax, [ebp - 4]
push eax
mov dword [edx + 8], 0x11180
mov dword [edx + 0xc], 0x111a6
mov dword [edx + 0x10], 0x111c4
mov dword [edx + 0x14], 0x111ea
mov dword [edx + 0x18], 0x1120a
mov dword [edx + 0x1c], 0x1122c
mov dword [edx + 0x20], 0x11746
mov dword [edx + 0x24], 0x1125e
mov dword [edx + 0x28], 0x11276
mov dword [edx + 0x2c], 0x11296
mov dword [edx + 0x3c], 0x11542
mov dword [edx + 0x40], 0x112b6
mov dword [edx + 0x44], 0x11874
call dword [sym.imp.NDIS.SYS_NdisRegisterProtocol]
push dword [ebp - 4]
push 0x1222e
call sub.ntoskrnl.exe_DbgPrint
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop edi
leave
ret

Function at 0x12364
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov ecx, 0x15270
xor ebx, ebx
mov eax, ecx
push edi
xor edi, edi
mov dword [0x153b0], ebx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x12381
sub eax, esi
mov word [ebp - 8], ax
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x12393
sub eax, esi
xor esi, esi
mov word [ebp - 6], ax
inc esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jge 0x123c3
mov edi, 0xc0000022
jmp 0x12495
push ebx
push ebx
push 0x868
push 3
push 3
push 0x80
lea eax, [ebp - 0x10]
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x38]
push eax
push 0xc0100000
push 0x153b0
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], 0x40
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
lea eax, [ebp - 0x10]
push eax
jge 0x1241e
mov edi, 0xc0000022
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x12495
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push ebx
lea eax, [ebp - 0x18]
push eax
push 0x30
push 0x15380
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push dword [0x153b0]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jge 0x12495
mov dword [0x15384], esi
mov dword [0x15380], esi
mov dword [0x15388], esi
mov dword [0x1538c], esi
mov dword [0x1539c], esi
mov dword [0x15390], esi
mov dword [0x153a4], esi
mov dword [0x153a8], esi
mov dword [0x153a0], esi
mov dword [0x15398], esi
mov dword [0x15394], esi
mov dword [0x153ac], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret