joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053fb0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x10053fe3
push 0x2e
push esi
call fcn.10076210
add esp, 8
test eax, eax
je 0x10053fe1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10054150
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ac108]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100541e1
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.100540c0
mov ecx, esi
push 8
push ecx
call fcn.10058230
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x100541f2
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10071a4e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10071a4e
mov esp, ebp
pop ebp
ret
Function at 0x10054360
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10054371
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x100ab508]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1005439c
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.10056dd0
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x1005441b
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1005440f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x100ab50c]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10054700
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10054733
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret
Function at 0x10058280
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x100ab508]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100582ab
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x100582f2
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x100582f5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x10058356
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x10058320
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x1005838f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x1009cc04
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x1009cc05
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x10058360
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100889e6
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100ac108]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1007a118
mov dword [ebp - 0x14], eax
cmp dword [0x100ae798], edi
jne 0x10088ad7
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10088a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10088bb7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10088bb7
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10088bb7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100ae798], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100ae79c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100ae7a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100ae7a8], eax
test eax, eax
je 0x10088ad4
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100ae7a4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10088afc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10088aef
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10088b11
push 4
pop eax
jmp 0x10088bb9
cmp dword [ebp - 0x14], edi
je 0x10088b11
push dword [0x100ae798]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10088af6
mov eax, dword [0x100ae7a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10088b6f
cmp dword [0x100ae7a8], esi
je 0x10088b6f
push eax
call ebx
push dword [0x100ae7a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10088b6f
test eax, eax
je 0x10088b6f
call ecx
test eax, eax
je 0x10088b64
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10088b64
test byte [ebp - 8], 1
jne 0x10088b6f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10088b9f
mov eax, dword [0x100ae79c]
cmp eax, esi
je 0x10088b9c
push eax
call ebx
test eax, eax
je 0x10088b9c
call eax
mov edi, eax
test edi, edi
je 0x10088b9c
mov eax, dword [0x100ae7a0]
cmp eax, esi
je 0x10088b9c
push eax
call ebx
test eax, eax
je 0x10088b9c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100ae798]
call ebx
test eax, eax
je 0x10088bb7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10088bb9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10071a4e
leave
ret
Function at 0x1008ce0a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1007e328
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1008ce42
xor eax, eax
jmp 0x1008ce6e
cmp esi, dword [ebp - 4]
je 0x1008ce6b
cmp dword [ebp + 0xc], 0
je 0x1008ce6b
push dword [edi + 0x9c]
call fcn.1008ca18
push dword [edi + 0x9c]
mov esi, eax
call fcn.10072b07
pop ecx
pop ecx
cmp esi, eax
je 0x1008ce3e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x7003567
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x7003576
pop dword [ebp - 0x44]
mov eax, 0xf0ff1df7
sub eax, 0xe9fee881
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x3502a979
add dword [ebp - 0x54], 0x194f9bd2
mov dword [ebp - 0x50], 0xf4758670
add dword [ebp - 0x50], 0x3dbdc5d5
mov dword [ebp - 0x4c], 0xcf2829b3
add dword [ebp - 0x4c], 0x7d241a7b
mov dword [ebp - 0x48], 0x2dd22869
sub dword [ebp - 0x48], 0x2dd22869
lea eax, [ebp - 0x54]
push eax
mov eax, 0x50cbf4d8
sub eax, 0x49cac4a8
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x8f1ec432
add dword [ebp - 0x54], 0xe553a524
mov dword [ebp - 0x50], 0xec677a37
sub dword [ebp - 0x50], 0xaafb18c2
mov dword [ebp - 0x4c], 0x63e99b6c
sub dword [ebp - 0x4c], 0x7a2f00
mov dword [ebp - 0x48], 0x1e0c8d4b
sub dword [ebp - 0x48], 0x1e0c8d4b
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xd3bd7706
add eax, 0x3343b92e
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3bc77
push 0
call eax
mov ecx, 0x4c54
mov esi, eax
mov edx, 0xd2d72003
add edx, 0x342ae1fd
add edx, dword [ebp - 0x44]
mov edi, 0xf879a380
sub edi, 0x508c8c65
mov ebx, dword [edx]
sub dword [ebp - 8], 0xf1cbbfc
sub ebx, edi
xor dword [ebp - 0x3c], 0xed00682c
mov dword [esi], ebx
add dword [ebp - 0x20], 0x1520977b
add esi, 0x86b561e8
add esi, 0x794a9e1c
add edx, 0x2b441cb2
add edx, 0xd4bbe352
loop 0x7003692
add eax, 0xb8dc8930
sub eax, 0xb8db650d
mov ebx, eax
add eax, 5
mov ecx, 0x74f038e6
add ecx, 0x920fc71a
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x700d29f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x70120f1
call fcn.07001cf8
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700d491
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700dd8a
lea ecx, [ebp - 0x10]
call fcn.0700d23c
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700d30c
mov eax, dword [eax + 0x14]
jmp 0x700d311
mov eax, 0x70138c2
push 0x7015240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700d343
mov ecx, dword [edi + 4]
call fcn.070076d1
lea ecx, [ebp - 0x10]
mov dword [edi + 8], eax
call fcn.07003567
mov eax, edi
call fcn.07001ea7
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003567
int3
Function at 0x100013f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000140b
push 0
push 0
push 0x100013a0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthread]
add esp, 0xc
mov eax, 1
pop ebp
ret 0xc
Function at 0x403bc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x403c34
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xff
lea eax, [ebp - 0x101]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
lea eax, [ebp - 0x108]
lea edx, [ebp - 0x101]
mov ecx, 0x101
call fcn.00402174
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x403c48
call fcn.004021d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c3b
lea eax, [ebp - 0x108]
call fcn.0040201c
ret
Function at 0x40c501
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4186f8
cmp edx, dword [eax]
je 0x40c523
add eax, 8
inc ecx
cmp eax, 0x418788
jl 0x40c514
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4186f8]
jne 0x40c651
mov eax, dword [0x41934c]
cmp eax, 1
je 0x40c62b
test eax, eax
jne 0x40c554
cmp dword [0x4162e4], 1
je 0x40c62b
cmp edx, 0xfc
je 0x40c651
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40c58b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407fa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004076f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40c5ce
lea eax, [ebp - 0x1a4]
push eax
call fcn.004076f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x414780
push edi
call fcn.0040d860
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407fa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407fb0
lea eax, [ebp - 0xa0]
push 0x4161cc
push eax
call fcn.00407fb0
push dword [esi + 0x4186fc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407fb0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040d7cd
add esp, 0x2c
pop edi
jmp 0x40c651
lea eax, [ebp + 8]
lea esi, [esi + 0x4186fc]
push 0
push eax
push dword [esi]
call fcn.004076f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40fd06
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x40fd41
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x40fd1e
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x40fd5d
dec esi
je 0x40fd56
dec esi
jne 0x40fd62
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

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 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432030]
jne 0x401116
repz ret
jmp fcn.00401b21

Function at 0x40a4bc
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.00405c15
and dword [ebp - 4], 0
cmp dword [0x434894], 0
mov ebx, eax
jne 0x40a56d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a61e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a61e
push eax
call fcn.00405ba3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434894], eax
call esi
push eax
call fcn.00405ba3
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00405ba3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00405ba3
pop ecx
mov dword [0x4348a4], eax
test eax, eax
je 0x40a56d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405ba3
pop ecx
mov dword [0x4348a0], eax
mov eax, dword [0x4348a0]
cmp eax, ebx
je 0x40a5c5
cmp dword [0x4348a4], ebx
je 0x40a5c5
push eax
call fcn.00405c1e
push dword [0x4348a4]
mov esi, eax
call fcn.00405c1e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a5c5
test edi, edi
je 0x40a5c5
call esi
test eax, eax
je 0x40a5bc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a5bc
test byte [ebp - 0xc], 1
jne 0x40a5c5
or dword [ebp + 0x10], 0x200000
jmp 0x40a5fe
mov eax, dword [0x434898]
cmp eax, ebx
je 0x40a5fe
push eax
call fcn.00405c1e
pop ecx
test eax, eax
je 0x40a5fe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a5fe
mov eax, dword [0x43489c]
cmp eax, ebx
je 0x40a5fe
push eax
call fcn.00405c1e
pop ecx
test eax, eax
je 0x40a5fe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434894]
call fcn.00405c1e
pop ecx
test eax, eax
je 0x40a61e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a620
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cea0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x432030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2aed2d4]
push ebx
mov ebx, dword [0x2aecff4]
push esi
mov esi, dword [0x433060]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40cee1
push str.duxafodaz
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2aed2d4]
mov dword [0x2aecff0], esi
cmp eax, 0x114e
jne 0x40cf06
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
mov eax, dword [0x2aed2d4]
cmp eax, 0x2f
jne 0x40cf34
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push edi
push ebx
call fcn.0040cd50
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x401320
Capabilities:
Terminate process

Disassembly:
cmp eax, 0x30
je 0x4013b0
push ebp
mov ebp, esp
push esi
push ebx
mov ebx, eax
lea eax, [eax - 0x68]
sub esp, 0x10
cmp eax, 0xf
ja case.0x40133b.105
jmp dword [eax*4 + 0x405070]
mov dword [esp + 4], str.winepath
mov dword [esp], str.Usage:__s__OPTION___PATH_..._n
call fcn.00401040
mov dword [esp], str.Convert_PATH_s__to_Unix_or_Windows_long_or_short_paths._n_n___u____unix____converts_a_Windows_path_to_a_Unix_path_n___w____windows_converts_a_Unix_path_to_a_long_Windows_path_n___l____long____converts_the_short_Windows_path_of_an_existing_file_or_n________________directory_to_the_long_format_n___s____short___converts_the_long_Windows_path_of_an_existing_file_or_n________________directory_to_the_short_format_n___0____________separate_output_with_0_character__instead_of_a_newline_n___h____help____output_this_help_message_and_exit_n_nIf_more_than_one_option_is_given_then_the_input_paths_are_output_in_nall_formats_specified__in_the_order_long__short__Unix__Windows._nIf_no_option_is_given_the_default_is_Unix_format._n
call fcn.00401040
mov dword [esp], 0
call dword [sym.imp.ucrtbase.dll_exit]
lea esi, [esi]
mov eax, 2
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
add esp, 0x10
mov eax, 8
pop ebx
pop esi
pop ebp
ret
mov eax, 4
jmp 0x40137d
mov eax, 1
jmp 0x40137d
mov eax, 0x10
ret
mov dword [ebp - 0xc], edx
mov esi, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], 2
call esi
mov dword [esp + 8], str.winepath
mov dword [esp + 4], str._s:_invalid_option
mov dword [esp], eax
call fcn.00401000
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x40143b
mov eax, edx
call fcn.004010f0
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x405049
mov dword [esp], eax
call fcn.00401000
mov dword [esp], 2
call esi
mov dword [esp + 8], str.winepath
mov dword [esp + 4], str.Try__s___help_for_help_n
mov dword [esp], eax
call fcn.00401000
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll_exit]
mov dword [esp], 2
call esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.__c_n
mov dword [esp], eax
call fcn.00401000
jmp 0x40140d
Function at 0x402670
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x4026e0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401460
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]

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