joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1016f66
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x10
push 0
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1017085
mov eax, dword [ebp + 0xc]
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
test dword [eax + 8], 0x20
jne 0x1016fae
add edi, 0x3080
mov dword [esi + 4], edi
jmp 0x1017083
push 1
mov dword [esi + 4], 0x1004b64
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1017083
lea ecx, [ebp - 8]
push ecx
push 0x2000
lea ecx, [edi + 0x40]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x101707a
push ebx
lea eax, [ebp - 4]
push eax
push dword [edi + 0x4c]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
test ebx, ebx
je 0x1017079
push 0x5c
push dword [ebx]
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
jne 0x1017011
mov eax, dword [ebx]
jmp 0x1017013
inc eax
inc eax
push eax
push 0x1017094
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1017072
xor edi, edi
inc edi
cmp dword [ebp - 4], edi
jle 0x1017072
push dword [ebx + edi*4]
push 0x101708c
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1017049
inc edi
cmp edi, dword [ebp - 4]
jge 0x1017072
jmp 0x101702d
lea eax, [edi + 1]
cmp eax, dword [ebp - 4]
jge 0x1017072
mov edi, dword [ebx + edi*4 + 4]
xor eax, eax
cmp ax, word [edi]
je 0x1017072
push edi
call dword [sym.imp.msvcrt.dll__wcsdup]
pop ecx
mov dword [esi + 4], eax
test eax, eax
jne 0x1017072
mov dword [esi + 4], 0x1004b64
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop edi
pop esi
leave
ret 0xc

Function at 0x10171a0
Capabilities:
Stop service

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
cmp edi, ebx
jne 0x10171c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1017212
push esi
push 0x20
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
cmp esi, ebx
jne 0x10171ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
jmp 0x1017211
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1017203
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1017d09
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, 0xdaf
cmp eax, esi
je 0x1017d4a
cmp eax, 0xdb3
jbe 0x1017da1
cmp eax, 0xdb7
ja 0x1017da1
push 0x101fac0
push eax
push 0x1017ce4
call dword [sym.imp.KERNEL32.dll_TrySubmitThreadpoolCallback]
test eax, eax
jne 0x1017da1
push eax
call dword [sym.imp.USER32.dll_MessageBeep]
jmp 0x1017da1
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [0x101e098]
mov dword [ebp - 0x34], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x600
mov dword [ebp - 0x30], 0x100d5dc
mov dword [ebp - 0x2c], 0x1017da8
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0
push 0
push esi
push 2
call fcn.010055be
push eax
call fcn.0101af4e
pop esi
leave
ret 4
Function at 0x10181bb
Capabilities:
Enumerate threads

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x11b4
call fcn.0100915c
mov eax, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push ebx
push esi
push edi
push 0
push 0
mov dword [eax], 1
call dword [sym.imp.ADVAPI32.dll_OpenThreadWaitChainSession]
mov dword [ebp - 0xc], eax
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x101820d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018203
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x1018350
push dword [ebp + 8]
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
test eax, eax
je 0x1018223
cmp eax, 0xffffffff
jne 0x101823b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018231
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x101832c
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x34], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1018256
xor ebx, ebx
jmp 0x101826e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018264
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jl 0x101832c
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x28], eax
jne 0x1018369
cmp dword [ebp - 4], 0
je 0x101828f
cmp dword [ebp - 4], 0xffffffff
je 0x101828f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 4], eax
test eax, eax
je 0x1018359
cmp eax, 0xffffffff
je 0x1018359
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x1018369
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x11b4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x2c]
xor ebx, ebx
push 7
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_GetThreadWaitChain]
test eax, eax
jne 0x101830b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1018301
and eax, edi
or eax, esi
mov ebx, eax
test ebx, ebx
jge 0x101830b
xor ebx, ebx
jmp 0x1018369
cmp dword [ebp - 0x14], 0
je 0x1018369
mov eax, dword [ebp + 0xc]
and dword [eax], 0
cmp dword [ebp - 4], 0
je 0x101832c
cmp dword [ebp - 4], 0xffffffff
je 0x101832c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
je 0x1018341
cmp dword [ebp - 8], 0xffffffff
je 0x1018341
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
je 0x1018350
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CloseThreadWaitChainSession]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1018367
and eax, edi
or eax, esi
mov ebx, eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call sub.KERNEL32.dll_Thread32Next
test eax, eax
je 0x1018317
jmp 0x101826e
Function at 0x10194cb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
mov eax, 0xf0
mov word [esi + 4], ax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x10050f0
push 0x80000001
mov dword [esi], 0x100d8b0
mov dword [esi + 8], 0x6a
mov dword [esi + 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101957e
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [0x101fd38]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1019548
cmp dword [ebp - 8], ebx
jne 0x1019548
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [0x101fd3c]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1019573
cmp dword [ebp - 8], ebx
jne 0x1019573
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret

Function at 0x1019588
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x10089d8
push esi
push 0x10050f0
mov edi, ecx
push 0x80000001
mov dword [edi], 0x100d8b0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10195f8
push 4
lea eax, [edi + 8]
push eax
push 4
push esi
push dword [0x101fd38]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call esi
push 4
add edi, 0xc
push edi
push 4
push 0
push dword [0x101fd3c]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x1019e61
Capabilities:
Prompt user for credentials

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], ebx
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], 0x140082
cmp dword [ebp + 0x1c], ebx
je 0x1019e90
mov dword [ebp - 0xc], 0x140083
mov edi, 0x208
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call esi
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x1019eb9
mov dword [ebp + 0x1c], 0x8007000e
jmp 0x1019fe3
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1019ed7
mov dword [ebp + 0x1c], 0x8007000e
jmp 0x1019fc0
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
mov edi, 0x104
push edi
push dword [ebp - 8]
push 0x2713
push dword [0x101e0a4]
call esi
mov ebx, 0xffff
test eax, eax
jg 0x1019f21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1019f11
jle 0x1019f16
and eax, ebx
or eax, 0x80070000
jmp 0x1019f16
mov eax, 0x80004005
mov dword [ebp + 0x1c], eax
test eax, eax
jl 0x1019fbe
push edi
push dword [ebp - 4]
push 0x9cbc
push dword [0x101e0a4]
call esi
test eax, eax
jg 0x1019f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1019f4b
jle 0x1019f50
and eax, ebx
or eax, 0x80070000
jmp 0x1019f50
mov eax, 0x80004005
mov dword [ebp + 0x1c], eax
test eax, eax
jl 0x1019fbe
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x24]
push dword [ebp + 0x14]
mov dword [ebp - 0x24], 0x14
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0x52e
push 0
push 0x1004b64
push eax
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
xor ecx, ecx
test eax, eax
je 0x1019faa
jle 0x1019fa8
and eax, ebx
or eax, 0x80070000
mov ecx, eax
mov dword [ebp + 0x1c], ecx
and ecx, ebx
cmp ecx, 0x4c7
jne 0x1019fbe
mov dword [ebp + 0x1c], 1
xor ebx, ebx
push dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
cmp dword [ebp - 4], ebx
je 0x1019fe3
push dword [ebp - 4]
push ebx
call edi
push eax
call esi
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x101a3c9
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.0100915c
mov eax, dword [0x101e08c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x10b4], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x648]
push eax
push 0x2713
push dword [0x101e0a4]
call edi
lea eax, [ebp - 0x10d8]
push eax
push 0xa68
lea eax, [ebp - 0x10b0]
push eax
push 1
push dword [esi]
push 0
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x101a604
cmp dword [ebp - 0xb50], 0
jne 0x101a493
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbe
push dword [0x101e0a4]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push 0x105
push eax
call fcn.0100196b
add esp, 0x10
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x101a604
cmp dword [esi + 0x84], 4
jne 0x101a4bd
cmp dword [ebp - 0xb50], 1
je 0x101a4ae
cmp dword [ebp - 0xb50], 3
jne 0x101a4bd
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbf
jmp 0x101a44d
lea ecx, [ebp - 0x10d4]
call fcn.010194cb
push dword [ebp - 0x10b4]
lea ecx, [ebp - 0x10d4]
call fcn.01019920
cmp eax, 1
jne 0x101a5f9
push 0
push 0x101a015
push dword [ebp - 0x10b4]
push 0xd6
push dword [0x101e0a4]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x10b8], eax
test eax, eax
je 0x101a51f
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x384
mov dword [ebp - 0x10c0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x10c4], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push dword [ebp - 0x10c8]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10cc]
push dword [esi]
push eax
push 0
call sub.WINSTA.dll_WinStationShadow
cmp dword [ebp - 0x10b8], 0
movzx eax, al
mov dword [ebp - 0x10bc], eax
je 0x101a596
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x10bc], 0
jne 0x101a5ed
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbd
push dword [0x101e0a4]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push 0x105
push eax
call fcn.0100196b
add esp, 0x10
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x10c0]
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x10d4]
call fcn.01019588
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001679
leave
ret 8
Function at 0x101acf0
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor ebx, ebx
xor esi, esi
inc esi
lea eax, [ebp - 8]
push eax
xor edi, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 8], esi
mov dword [ebp - 4], eax
jle 0x101ad50
mov eax, dword [eax + 4]
cmp word [eax], 0x2f
jne 0x101ad50
add eax, 2
push eax
call dword [sym.imp.msvcrt.dll__wtol]
mov edi, eax
cmp edi, 7
pop ecx
jl 0x101ad50
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
push eax
push 4
push 0xdd7
push ebx
mov dword [ebp - 0xc], edi
call sub.ntdll.dll_WinSqmAddToStream
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x101ad87
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
leave
ret 0xc
Function at 0x40b88c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40b8c5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405018
jmp 0x40b8ce
mov eax, ebx
mov edx, esi
call fcn.00404edc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8d8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40b8fa
movzx eax, word [esp]
jmp 0x40b8fc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c084
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x40c1a9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040be98
mov esi, eax
mov eax, dword [0x417d28]
cmp byte [eax], 0
je 0x40c151
mov eax, dword [0x417c4c]
call fcn.0040319c
call fcn.00402f8c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x40c060]
call fcn.00405d68
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x40c1c4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c18d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x417c2c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41ab48]
call fcn.00405e20
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1b0
lea eax, [ebp - 4]
mov edx, dword [0x40c060]
call fcn.00405d74
ret
Function at 0x40da43
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00404ad0
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x40da66
mov eax, edi
add eax, eax
call fcn.00402e24
mov esi, eax
jmp 0x40da68
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x40daa1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x40da8b
mov eax, esp
cmp esi, eax
je 0x40daae
mov eax, esi
call fcn.00402e40
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x40dae8
cmp bl, 0
je 0x40dae4
cmp bl, 0x41
jl 0x40dadf
cmp bl, 0x5a
jg 0x40dadf
or bl, 0x20
xor al, bl
inc esi
jmp 0x40dac3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x40da28

Function at 0x40e9c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ea06
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040e8d8
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea0d
lea eax, [ebp - 4]
call fcn.00404ecc
ret

Function at 0x40ec24
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x40ecbb
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x40ec6f
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.00405018
jmp 0x40eca5
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x40ec88
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404f30
jmp 0x40ec9b
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0040eae4
mov ebx, eax
test esi, esi
je 0x40ec9b
dec esi
jmp 0x40ec76
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ecc2
lea eax, [ebp - 4]
call fcn.00404ecc
ret

Function at 0x40eccc
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00408bb8
add esp, 0x208
pop ebx
ret
Function at 0x40ee4c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40ef89
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x40ef73
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40eea9
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ef73
cmp dword [ebp - 0x14], 0
jne 0x40eec0
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00404edc
mov bl, 1
jmp 0x40ef73
cmp dword [ebp - 0x14], 0x70000000
jb 0x40eece
call fcn.0040c1f0
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.00405018
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.004056f0
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x40ee72
test eax, eax
jne 0x40ef73
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x40ef1c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x40ef73
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x40ef24
dec esi
test esi, esi
je 0x40ef38
lea eax, [ebp - 4]
call fcn.00404990
cmp word [eax + esi*2 - 2], 0
je 0x40ef23
cmp dword [ebp - 0x10], 7
jne 0x40ef43
test esi, esi
je 0x40ef43
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00405144
cmp dword [ebp - 0x10], 7
jne 0x40ef66
test esi, esi
je 0x40ef66
lea eax, [ebp - 4]
call fcn.004056f0
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404edc
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef90
lea eax, [ebp - 4]
call fcn.00404ecc
ret

Function at 0x40f9cc
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x41cd94
mov eax, esi
mov edx, 8
test al, 1
je 0x40f9e8
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f9ea
shr eax, 1
dec edx
jne 0x40f9db
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40f9d4
pop esi
ret

Function at 0x40fa00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x41cd90], 0
jne 0x40fa23
call fcn.0040f9cc
push 1
push 0x41cd90
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x40fa4e
mov edx, ebx
and edx, 0xff
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x41cd94]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x40fa29
mov eax, ebx
pop edi
pop esi
pop ebx
ret