joyce8/EMBER2024-capa huggingface dataset:
Function at 0x489658
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x48966f
add esp, 0xfffffff0
call fcn.0040461c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00426ba4
mov eax, dword [0x61aeac]
cmp word [eax + 2], 0
jne 0x489697
mov eax, dword [0x61aeac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048add8
mov eax, dword [0x61b0fc]
cmp word [eax + 2], 0
jne 0x4896b1
mov eax, dword [0x61b0fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0048afd0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a9d0]
call fcn.00404288
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a9d0]
call fcn.00404288
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], 0xff000018
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 [0x4298a0]
call fcn.00431dc0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x489838
mov eax, dword [0x61ac34]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00432190
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x48b570
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x61ac34]
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.0040f678
test eax, eax
je 0x4897a6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040ae4c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040f6a0
test eax, eax
je 0x4897ba
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.00405378
mov eax, dword [0x61a840]
cmp byte [eax], 0
jne 0x4897ee
mov eax, ebx
call fcn.00489960
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.0048b74c
mov eax, ebx
call fcn.0048c110
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48982e
call fcn.00404674
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x489be0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x61cbf4]
cmp dword [eax + 0x30], 0
je 0x489c8a
cmp dword [ebx + 0x94], 0
jne 0x489c84
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x489b70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x489c84
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 0x489c4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x489c84
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.0041d47c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x489c59
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x48a7ec
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 0x48a821
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.004051f8
jmp 0x48a82e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040515c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x48b928
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x48b969
mov eax, esi
call fcn.0047176c
test al, al
je 0x48b969
mov eax, dword [ebx + 0x84]
call fcn.00471468
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48b969
push 0
mov eax, dword [ebx + 0x84]
call fcn.00471468
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x48cd98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
xor eax, eax
push ebp
push 0x48ceb9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xaa
lea eax, [ebp - 0x20]
call fcn.00405108
mov eax, dword [ebp - 4]
call fcn.004053c8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 0x80000001
jns 0x48cdf1
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x48ce02
lea eax, [ebp - 4]
mov edx, 0x48cecc
call fcn.004053d0
mov eax, dword [ebp - 4]
call fcn.004053c8
sar eax, 1
jns 0x48ce11
adc eax, 0
test eax, eax
jle 0x48ce83
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], 1
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x14]
add edx, edx
dec edx
mov ecx, 2
mov eax, dword [ebp - 4]
call fcn.00405628
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x48ced8
call fcn.00405414
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x18]
call fcn.004038ac
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0xc]
xor byte [ebp - 0x19], al
add dword [ebp - 0xc], 0x11
and dword [ebp - 0xc], 0xff
lea eax, [ebp - 0x30]
mov dl, byte [ebp - 0x19]
call fcn.004052f0
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
call fcn.004053d0
inc dword [ebp - 0x14]
dec dword [ebp - 0x24]
jne 0x48ce1f
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
call fcn.0040515c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48cec0
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.0040512c
lea eax, [ebp - 0x20]
call fcn.00405108
lea eax, [ebp - 4]
call fcn.00405108
ret

Function at 0x48cedc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b03c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetTempPathA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b028
mov eax, dword [ebp - 0xc]
call fcn.0040b088
mov esp, ebp
pop ebp
ret

Function at 0x48e5a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 8], eax
push 1
call sub.KERNEL32.DLL_Sleep
call sub.KERNEL32.DLL_GetTickCount
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 8]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
mov eax, dword [ebp - 4]
cdq
cmp edx, dword [esp + 4]
jne 0x48e5e3
cmp eax, dword [esp]
pop edx
pop eax
ja 0x48e5b1
jmp 0x48e5e7
pop edx
pop eax
jg 0x48e5b1
pop ecx
pop ecx
pop ebp
ret
Function at 0x490618
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x419e28]
call fcn.00405c30
xor eax, eax
push ebp
push 0x49075c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x61235c], 0
jne 0x49066b
mov ecx, dword [0x61a888]
mov dl, 1
mov eax, dword [0x408df0]
call fcn.0040e870
call fcn.00404a84
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.0040345c
mov eax, ebx
call fcn.004059cc
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x49076c
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406ff4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004059dc
test eax, eax
jle 0x490703
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4906fc
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00405390
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00405378
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409d74
test eax, eax
jne 0x4906fc
mov ebx, 0x15
jmp 0x490708
mov ebx, 0x10
jmp 0x490708
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x61235c]
call fcn.00490570
mov eax, dword [ebp - 8]
call fcn.00490570
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.0040700c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490763
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0040512c
lea eax, [ebp - 0x10]
mov edx, dword [0x419e28]
call fcn.00405d00
ret
Function at 0x492578
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
mov dword [ebp - 4], eax
mov eax, dword [0x61b4ac]
cmp dword [eax], 2
jne 0x4925ff
lea eax, [ebp - 0xc]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
je 0x4925ff
lea eax, [ebp - 0x24]
push eax
push 0x49261c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x15], al
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x10], 0x10
xor eax, eax
mov dword [ebp - 0x14], eax
cmp byte [ebp - 0x15], 0
je 0x4925ff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret

Function at 0x492728
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.00402828
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x492799
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.00405300
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4927a0
mov eax, dword [ebp - 0xc]
call fcn.00402848
ret
Function at 0x493ef4
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe60
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
xor eax, eax
push ebp
push 0x493ffc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a0]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor eax, eax
push ebp
push 0x493fcb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004055c8
push eax
call sub.wsock32.dll_gethostbyname
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x493fab
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x493f93
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx]
mov byte [eax], dl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 2]
mov byte [eax + 2], dl
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + 3]
mov byte [eax + 3], dl
jmp 0x493fc1
mov ecx, 0x494014
mov dl, 1
mov eax, dword [0x408df0]
call fcn.0040e7b4
call fcn.00404a84
jmp 0x493fc1
mov ecx, 0x49403c
mov dl, 1
mov eax, dword [0x408df0]
call fcn.0040e7b4
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x493fe1
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494003
lea eax, [ebp - 4]
call fcn.00405108
ret

Function at 0x494054
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
xor eax, eax
push ebp
push 0x4940e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
call sub.icmp.dll_IcmpCreateFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x4940cc
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00493ef4
mov eax, dword [ebp - 8]
push eax
push 0x80
lea eax, [ebp - 0x98]
push eax
push 0
push 0
push 0
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.icmp.dll_IcmpSendEcho
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
setne byte [ebp - 9]
mov eax, dword [ebp - 0x10]
push eax
call sub.icmp.dll_IcmpCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4940e9
lea eax, [ebp - 4]
call fcn.00405108
ret
Function at 0x494128
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff67c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x980], ebx
mov dword [ebp - 0x984], ebx
mov dword [ebp - 0x97c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4943c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x24], 3
mov eax, 0x4943e0
call fcn.0048cf1c
test al, al
je 0x494181
mov dword [ebp - 0x24], 2
lea eax, [ebp - 0x82c]
xor ecx, ecx
mov edx, 0x800
call fcn.0040345c
mov dword [ebp - 0x20], 0x16c
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x61a9a4]
mov eax, dword [eax]
mov cl, 1
mov edx, 0x4943f0
call fcn.0048db90
cmp dword [ebp - 0x28], 0
je 0x4941e1
or edx, 0xffffffff
mov eax, dword [ebp - 0x28]
call fcn.0040a480
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jle 0x4941d1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5dc
jle 0x4941e1
mov dword [ebp - 0x20], 0x5dc
mov eax, dword [ebp - 4]
call fcn.004053c8
sub dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
call fcn.004053c8
sub dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jg 0x494204
mov dword [ebp - 0x20], 0x64
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00405628
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push 0x494404
push dword [ebp - 8]
push 0x494410
lea eax, [ebp - 0x97c]
mov edx, 3
call fcn.00405488
mov eax, dword [ebp - 0x97c]
call fcn.004055c8
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.0048e934
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.0048e934
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
lea eax, [ebp - 0x82c]
mov edx, 0x7ff
call fcn.0048e934
xor eax, eax
push ebp
push 0x494309
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 0x14], 0xffffffff
setne byte [ebp - 0xd]
cmp byte [ebp - 0xd], 0
je 0x4942f2
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x82c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_WriteFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494310
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
Function at 0x49443c
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055b8
mov eax, dword [ebp - 8]
call fcn.004055b8
xor eax, eax
push ebp
push 0x494532
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xb], 0
mov eax, dword [0x61b4ac]
cmp dword [eax], 2
jne 0x494517
lea eax, [ebp - 0x14]
push eax
push 0x28
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x4944ca
lea eax, [ebp - 0x24]
push eax
push 0x494544
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
test eax, eax
je 0x4944ca
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x28], 1
lea eax, [ebp - 0x10]
push eax
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
cmp byte [ebp + 8], 1
cmc
sbb eax, eax
push eax
cmp byte [ebp + 0xc], 1
cmc
sbb eax, eax
push eax
movzx eax, word [ebp - 0xa]
push eax
mov eax, dword [ebp - 8]
call fcn.004055c8
push eax
mov eax, dword [ebp - 4]
call fcn.004055c8
push eax
call sub.advapi32.dll_InitiateSystemShutdownA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xb], al
cmp byte [ebp - 0xb], 0
jne 0x494517
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x494517
mov byte [ebp - 0xb], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494539
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040512c
ret
Function at 0x4948c4
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0
lea eax, [ebp - 8]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4948f6
mov edx, 0xbb8
mov eax, 0x49490c
call fcn.00494054
mov byte [ebp - 9], al
mov al, byte [ebp - 9]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x497084
Capabilities:
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49714b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 8]
call fcn.0040b03c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x4970d3
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040b028
jmp 0x497122
call fcn.00495468
test al, al
je 0x497110
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0x497158
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
je 0x497106
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x410]
call fcn.0040b028
jmp 0x497122
lea eax, [ebp - 0xc]
call fcn.00405108
jmp 0x497122
lea ecx, [ebp - 0xc]
mov edx, 0x49716c
mov eax, 0x497180
call fcn.00495278
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040515c
mov eax, dword [ebp - 0x10]
call fcn.0040b088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497152
lea eax, [ebp - 0xc]
call fcn.00405108
ret

Function at 0x497190
Capabilities:
Get hostname
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497257
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x400
mov eax, dword [ebp - 8]
call fcn.0040b03c
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_GetComputerNameA
test eax, eax
je 0x4971df
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.0040b028
jmp 0x49722e
call fcn.00495468
test al, al
je 0x49721c
push 0x400
lea eax, [ebp - 0x410]
push eax
push 0x497264
call sub.KERNEL32.DLL_GetEnvironmentVariableA
test eax, eax
je 0x497212
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x410]
call fcn.0040b028
jmp 0x49722e
lea eax, [ebp - 0xc]
call fcn.00405108
jmp 0x49722e
lea ecx, [ebp - 0xc]
mov edx, 0x49727c
mov eax, 0x497290
call fcn.00495278
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
call fcn.0040515c
mov eax, dword [ebp - 0x10]
call fcn.0040b088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49725e
lea eax, [ebp - 0xc]
call fcn.00405108
ret
Function at 0x4972c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b03c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b028
mov eax, dword [ebp - 0xc]
call fcn.0040b088
mov esp, ebp
pop ebp
ret

Function at 0x497300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b03c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b028
mov eax, dword [ebp - 0xc]
call fcn.0040b088
mov esp, ebp
pop ebp
ret

Function at 0x497340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
mov eax, dword [ebp - 8]
call fcn.0040b03c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetTempPathA
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040b028
mov eax, dword [ebp - 0xc]
call fcn.0040b088
mov esp, ebp
pop ebp
ret

Function at 0x4987e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
push esi
push edi
push eax
push ebx
push ecx
push edx
lea edi, [0x612b30]
mov esi, dword [ebp - 4]
mov ax, word [ebp - 8]
mov dx, word [ebp - 6]
mov ecx, dword [ebp - 0xc]
or ecx, ecx
je 0x49882d
xor ebx, ebx
mov bl, al
lodsb al, byte [esi]
xor bl, al
mov al, ah
mov ah, dl
mov dl, dh
xor dh, dh
shl bx, 1
shl bx, 1
add ebx, edi
xor ax, word [ebx]
xor dx, word [ebx + 2]
loop 0x49880d
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], dx
pop edx
pop ecx
pop ebx
pop eax
pop edi
pop esi
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret