joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459470
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45961b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4595fc
mov dl, 1
mov eax, dword [0x412004]
call fcn.00403578
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404314
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4595eb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00446b78
test al, al
je 0x4595de
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45962c
lea eax, [ebp - 0x254]
call fcn.004092c0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4595de
xor eax, eax
push ebp
push 0x4595d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x459664
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x4595c0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040457c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4595c0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040457c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4595de
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4594e1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004164a8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x459622
lea eax, [ebp - 0x260]
call fcn.00404314
ret

Function at 0x459f50
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x475c04]
cmp byte [eax + 0xa5], 0
jne 0x459fc1
cmp dword [0x475c1c], 0
jne 0x459f82
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x459f0c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x475c1c], eax
cmp dword [0x475c18], 0
jne 0x459f9d
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x475c18], eax
cmp dword [0x475c20], 0
jne 0x459fc1
push esp
push 0
push 0
push 0x459eb0
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x475c20], eax
pop edx
ret
Function at 0x45a0e8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45a0ff
add esp, 0xfffffff0
call fcn.0040390c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041be10
mov eax, dword [0x4740a4]
cmp word [eax + 2], 0
jne 0x45a127
mov eax, dword [0x4740a4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b7c4
mov eax, dword [0x47413c]
cmp word [eax + 2], 0
jne 0x45a141
mov eax, dword [0x47413c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b9bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411a5c]
call fcn.00403578
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411a5c]
call fcn.00403578
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e308]
call fcn.0042589c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45a2c8
mov eax, dword [0x473fcc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00425c6c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45bf2c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x473fcc]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ac48
test eax, eax
je 0x45a236
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c08
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ac70
test eax, eax
je 0x45a24a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040457c
mov eax, dword [0x473eb0]
cmp byte [eax], 0
jne 0x45a27e
mov eax, ebx
call fcn.0045a3f0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045c108
mov eax, ebx
call fcn.0045ca98
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a2be
call fcn.00403964
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45a664
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x475c04]
cmp dword [eax + 0x30], 0
je 0x45a70e
cmp dword [ebx + 0x94], 0
jne 0x45a708
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45a5f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a708
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45a6ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a708
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004141b4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45a6dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45b1ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45b221
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404404
jmp 0x45b22e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404368
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45c2e4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45c325
mov eax, esi
call fcn.0044226c
test al, al
je 0x45c325
mov eax, dword [ebx + 0x84]
call fcn.00441f68
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45c325
push 0
mov eax, dword [ebx + 0x84]
call fcn.00441f68
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45d498
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, ecx
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
push edx
call sub.wsock32.dll_getsockname
mov ax, word [esp + 6]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov edx, ebx
call fcn.004087f0
add esp, 0x14
pop ebx
ret

Function at 0x45d4cc
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
add esp, 0xffffff6c
mov ebx, edx
push 0x80
lea eax, [esp + 0x14]
push eax
call sub.wsock32.dll_gethostname
lea eax, [esp + 0x10]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x45d500
mov eax, ebx
mov edx, 0x45d530
call fcn.00404368
jmp 0x45d51d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 4], eax
push dword [esp + 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, ebx
call fcn.00404504
add esp, 0x94
pop ebx
ret
Function at 0x45dc8c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x128], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45de7c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x3b8], 0
jne 0x45dcd6
push 1
mov ecx, 0x45de8c
mov edx, 0x45de9c
mov eax, dword [0x474124]
mov eax, dword [eax]
call fcn.0045b854
jmp 0x45de63
mov word [ebx + 0x214], 2
cmp byte [ebx + 0x3bc], 0
je 0x45dd0d
lea eax, [ebp - 0x121]
mov edx, dword [ebx + 0x3c0]
call fcn.00408c64
lea eax, [ebp - 0x121]
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 0x218], eax
jmp 0x45dd15
xor eax, eax
mov dword [ebx + 0x218], eax
mov esi, 0x45deb0
lea eax, [ebp - 0x20]
mov edx, dword [ebx + 0x3b8]
call fcn.00408c64
push esi
lea eax, [ebp - 0x20]
push eax
call sub.wsock32.dll_getservbyname
mov edi, eax
mov dword [ebx + 0x208], edi
test edi, edi
jne 0x45dd66
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x20]
call fcn.00408dc4
mov eax, dword [ebp - 0x128]
call fcn.00408854
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x216], ax
jmp 0x45dd71
mov ax, word [edi + 8]
mov word [ebx + 0x216], ax
push esi
call sub.wsock32.dll_getprotobyname
mov edi, eax
mov dword [ebx + 0x210], edi
movsx eax, word [edi + 8]
push eax
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x3c8], esi
test esi, esi
jge 0x45ddae
call sub.wsock32.dll_WSAGetLastError
push eax
mov ecx, 0x45debc
or edx, 0xffffffff
mov eax, ebx
call fcn.0045e0ec
push 0x10
lea eax, [ebx + 0x214]
push eax
mov eax, dword [ebx + 0x3c8]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x45dddf
call sub.wsock32.dll_WSAGetLastError
push eax
mov ecx, 0x45decc
mov edx, dword [ebx + 0x3c8]
mov eax, ebx
call fcn.0045e0ec
push 5
mov eax, dword [ebx + 0x3c8]
push eax
call sub.wsock32.dll_listen
test eax, eax
je 0x45de09
call sub.wsock32.dll_WSAGetLastError
push eax
mov ecx, 0x45dedc
mov edx, dword [ebx + 0x3c8]
mov eax, ebx
call fcn.0045e0ec
cmp dword [ebx + 0x3cc], 1
jne 0x45de4b
push 0x2b
push 0x400
mov eax, ebx
call fcn.00441f68
push eax
mov eax, dword [ebx + 0x3c8]
push eax
call sub.wsock32.dll_WSAAsyncSelect
test eax, eax
je 0x45de63
call sub.wsock32.dll_WSAGetLastError
push eax
mov ecx, 0x45deec
mov edx, dword [ebx + 0x3c8]
mov eax, ebx
call fcn.0045e0ec
jmp 0x45de63
lea eax, [ebx + 0x3cc]
push eax
push 0x8004667e
mov eax, dword [ebx + 0x3c8]
push eax
call sub.wsock32.dll_ioctlsocket
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de83
lea eax, [ebp - 0x128]
call fcn.00404314
ret
Function at 0x45e020
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
cmp dword [ebx + 0x3cc], 1
jne 0x45e04b
push 0
push 0x400
mov eax, ebx
call fcn.00441f68
push eax
mov eax, dword [ebx + 0x3c4]
push eax
call sub.wsock32.dll_WSAAsyncSelect
call sub.wsock32.dll_WSAIsBlocking
test eax, eax
je 0x45e059
call sub.wsock32.dll_WSACancelBlockingCall
push 2
mov eax, dword [ebx + 0x3c4]
push eax
call sub.wsock32.dll_shutdown
mov word [ebp - 4], 1
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov eax, dword [ebx + 0x3c4]
push eax
call sub.wsock32.dll_setsockopt
mov eax, dword [ebx + 0x3c4]
push eax
call sub.wsock32.dll_closesocket
test eax, eax
je 0x45e0b7
call sub.wsock32.dll_WSAGetLastError
push eax
mov ecx, 0x45e0d0
mov edx, dword [ebx + 0x3c4]
mov eax, ebx
call fcn.0045e0ec
mov dword [ebx + 0x3c4], 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x461ff0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00461bec
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004047c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46204e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4740bc]
mov dl, 1
mov eax, dword [0x461ae4]
call fcn.0040a248
call fcn.00403d74
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x462058
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004047c4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4620b0
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4742b4]
mov dl, 1
mov eax, dword [0x461ae4]
call fcn.0040a248
call fcn.00403d74
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00461c1c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x465474
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46554c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x475c8c], 0
jne 0x465530
lea eax, [ebp - 4]
mov edx, 0x465564
call fcn.004043ac
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004047c4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x465530
mov eax, ebx
call fcn.0040271c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x465529
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x465513
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x465574
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x465513
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x475c8c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465530
mov eax, dword [ebp - 0xc]
call fcn.0040273c
ret
mov ebx, dword [0x475c8c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465553
lea eax, [ebp - 4]
call fcn.00404314
ret

Function at 0x46f67c
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov esi, ecx
mov ebx, edx
push ebx
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x46f69a
mov eax, esi
mov edx, ebx
call fcn.00404504
jmp 0x46f6b7
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 4], eax
push dword [esp + 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.00404504
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x4064ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406526
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x800
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40650f
cmp dword [ebp + 0x14], 1
je 0x406514
cmp dword [ebp + 0x14], 2
je 0x406514
xor eax, eax
mov word [esi], ax
push dword [ebp - 4]
xor eax, eax
mov word [esi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret 0x14

Function at 0x40657a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x408978]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40897c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x4065c6
test edi, edi
jne 0x406587
mov word [esi], ax
jmp 0x4065c8
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4066b1
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4066d3
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x4313f4], 0
push esi
jne 0x406937
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x40690e
mov dword [ecx*4 + 0x4313f0], edx
inc ecx
cmp ecx, 0x100
jl 0x406909
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406961
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4313f0]
inc esi
sub edx, 1
jne 0x406949
not ecx
mov eax, ecx
pop esi
ret 0xc

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x401981
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x401990
pop dword [ebp - 8]
mov eax, 0x401990
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x8b1bdedc
sub dword [ebp - 0x18], 0x3cc99991
mov dword [ebp - 0x14], 0xe1721561
sub dword [ebp - 0x14], 0xaf3ec91c
mov dword [ebp - 0x10], 0xba0faab5
add dword [ebp - 0x10], 0x923c9979
mov dword [ebp - 0xc], 0xadcea09d
sub dword [ebp - 0xc], 0xadcea09d
lea eax, [ebp - 0x18]
push eax
mov eax, 0xe54dcac3
add eax, 0x1af30591
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x1808a121
sub dword [ebp - 0x18], 0xa39637cb
mov dword [ebp - 0x14], 0xe92f40bd
add dword [ebp - 0x14], 0x583d20b8
mov dword [ebp - 0x10], 0x34a8d5a6
sub dword [ebp - 0x10], 0xd139693a
mov dword [ebp - 0xc], 0xd803c05b
sub dword [ebp - 0xc], 0xd803c05b
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0xdaa4bf55
add eax, 0x259c10f7
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x3d769
push 0
call eax
mov ecx, 0x79c6de4c
sub ecx, 0x79c6869c
mov esi, eax
mov edi, 0x9559f9e8
sub edi, 0x951849e8
add edi, dword [ebp - 8]
mov ebx, 0x89cc67ff
add ebx, 0x6e39786b
xor dword [ebp - 4], 0x2ce7f040
mov edx, dword [edi]
xor dword [ebp - 4], eax
xor edx, ebx
mov dword [ebp - 4], 0x2ced7f78
mov dword [esi], edx
mov dword [ebp - 4], 0xbeff7f0c
add esi, 4
add edi, 0x41578b52
sub edi, 0x41578b4e
loop 0x401aad
add eax, 0xb8e7fe74
add eax, 0x4719531f
xor ebx, ebx
add ebx, eax
add eax, 0x2bf6cf67
add eax, 0xd409309e
mov ecx, 0x1b1ff87f
add ecx, 0xe5200781
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x569370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x56938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x592074
push ecx
mov edi, eax
call fcn.0057d198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5693cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0057d02e
push esi
call fcn.0057cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x56c850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x56c8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x597720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x56c8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0057d1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x56c8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x597720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x56c92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0057e082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x56c957
mov word [eax], si
add eax, 2
push eax
call fcn.0057e030
add esp, 4
jmp 0x56c959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x56c8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x56c8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x56cff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret