joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407396
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4073b8
push eax
push dword [0x411ad0]
call fcn.0040a0e0
pop ecx
pop ecx
cmp dword [esi + 0x14], ebx
mov edi, 0x104
je 0x40743c
mov eax, dword [esi + 0x10]
cmp eax, 0x10
jb 0x4073d1
mov eax, dword [0x411060]
jmp 0x4073d8
mov eax, dword [eax*4 + 0x41105c]
mov ecx, dword [0x411ac8]
mov byte [ecx], bl
lea ecx, [ebp + 8]
push ecx
push 0x20019
push ebx
push dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40741f
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 8]
push dword [0x411ac8]
push eax
push ebx
push dword [esi + 0x18]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x411ac8]
cmp byte [eax], bl
je 0x4074bc
push eax
push dword [0x411ad0]
call fcn.0040a0e0
pop ecx
pop ecx
jmp 0x40747e
cmp dword [esi + 0x1c], ebx
je 0x4074bc
cmp dword [esi + 0x20], ebx
je 0x4074bc
cmp dword [esi + 0x24], ebx
je 0x4074bc
push dword [0x411ad0]
push dword [0x411ac8]
call fcn.0040a0e0
pop ecx
pop ecx
push dword [esi + 0x1c]
push edi
push dword [0x411ad0]
push dword [0x411ac8]
push dword [esi + 0x24]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4074bc
mov eax, dword [0x411ad0]
cmp byte [eax], bl
je 0x4074cc
push eax
call fcn.0040a417
test eax, eax
pop ecx
je 0x4074aa
push dword [0x411ad0]
call fcn.0040a060
pop ecx
mov ecx, dword [0x411ad0]
mov byte [eax + ecx - 1], bl
jmp 0x40747e
mov eax, dword [0x411ad0]
cmp byte [eax], bl
je 0x4074cc
push eax
call fcn.004074d1
pop ecx
jmp 0x4074cc
mov eax, dword [0x411ad0]
push edi
push eax
push eax
call fcn.0040366f
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408330
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
or esi, 0xffffffff
push edi
cmp byte [ebx], 0x5c
jne 0x40837c
cmp byte [ebx + 1], 0x5c
jne 0x40837c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4083d9
mov esi, dword [ebp + 8]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
jmp 0x4083d9
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x4083d9
push ebx
push edi
call fcn.0040a0e0
cmp byte [edi + 1], 0x3a
pop ecx
pop ecx
jne 0x4083a6
and byte [edi + 3], 0
mov byte [edi + 2], 0x5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4083d2
mov esi, dword [ebp + 8]
imul esi, dword [ebp - 8]
shr esi, 8
imul esi, dword [ebp - 4]
shr esi, 2
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4083e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x20
cmp byte [ebx], 0x5c
pop edi
jne 0x40842b
cmp byte [ebx + 1], 0x5c
jne 0x40842b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x408487
mov edi, dword [ebp + 8]
imul edi, dword [ebp - 4]
add edi, 0x3ff
shr edi, 0xa
jmp 0x408487
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x408487
push ebx
push esi
call fcn.0040a0e0
cmp byte [esi + 1], 0x3a
pop ecx
pop ecx
jne 0x408455
and byte [esi + 3], 0
mov byte [esi + 2], 0x5c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x408480
mov edi, dword [ebp + 8]
imul edi, dword [ebp - 4]
add edi, 0x3ff
shr edi, 0xa
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408886
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push 5
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x408966
lea eax, [ebp - 0x208]
mov esi, 0x80000000
push eax
push dword [ebp + 0xc]
push esi
call fcn.0040896b
add esp, 0xc
test eax, eax
jne 0x408966
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push str._shellopencommand
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.0040896b
add esp, 0xc
test eax, eax
jne 0x408966
lea eax, [ebp - 0x208]
push str.__1_
push eax
call fcn.0040ae10
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x408947
lea eax, [ebp - 0x208]
push 0x41148c
push eax
call fcn.0040ae10
mov esi, eax
pop ecx
cmp esi, ebx
pop ecx
jne 0x408947
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x209]
jmp 0x408949
mov byte [esi], bl
push 0x411488
push esi
call edi
push dword [ebp + 8]
push esi
call edi
lea eax, [ebp - 0x208]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40896b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4089aa
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a3bf
test byte [esp + 8], 0x80
je 0x40a3ae
and al, 0xfe
jmp 0x40a3b0
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40a3d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040bda7
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a3f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040bda7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40a414
test byte [esp + 8], 2
je 0x40a414
mov dword [0x411ca8], 0xd
mov dword [0x411cac], 5
jmp 0x40a3ef
xor eax, eax
ret
Function at 0x40da61
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411a30
cmp edx, dword [eax]
je 0x40da83
add eax, 8
inc ecx
cmp eax, 0x411ac0
jl 0x40da74
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411a30]
jne 0x40dbb1
mov eax, dword [0x411cfc]
cmp eax, 1
je 0x40db8b
test eax, eax
jne 0x40dab4
cmp dword [0x411500], 1
je 0x40db8b
cmp edx, 0xfc
je 0x40dbb1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40daeb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a0e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040a060
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40db2e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040a060
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f798
push edi
call fcn.0040a6e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a0e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a0f0
lea eax, [ebp - 0xa0]
push 0x411160
push eax
call fcn.0040a0f0
push dword [esi + 0x411a34]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a0f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040e121
add esp, 0x2c
pop edi
jmp 0x40dbb1
lea eax, [ebp + 8]
lea esi, [esi + 0x411a34]
push 0
push eax
push dword [esi]
call fcn.0040a060
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 0x401496
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x14]
push edi
mov dword [ebp - 0x34], esi
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [0x41b5d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x41b5d4]
mov dword [ebp - 0x30], eax
call fcn.0040148f
mov edi, dword [ebp - 0x14]
mov eax, dword [0x41b5d8]
add edi, 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b5dc]
push 0x20
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x24], eax
pop esi
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov edx, dword [ebp - 8]
mov eax, edx
mov ecx, dword [0x2d39d8c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x40151f
push 0x418248
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov ecx, dword [0x2d39d8c]
add eax, dword [ebp - 0x20]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x2d39d88]
mov dword [ebp - 0x1c], 0xedeb2e40
cmove eax, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
cmp ecx, 0x3eb
mov dword [0x2d39d88], eax
mov eax, dword [0x2d39ce0]
cmove eax, dword [ebp - 0x1c]
mov dword [0x2d39ce0], eax
lea eax, [edi + edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [0x2d39d84], 0xf4ea3dee
call fcn.0040146c
mov ecx, dword [ebp - 0x10]
xor ecx, eax
sub ebx, ecx
mov dword [ebp - 0x10], ecx
mov eax, ebx
mov dword [ebp - 0x2c], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
nop
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x18]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], eax
xor eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 8], eax
add edi, 0x61c88647
mov dword [ebp - 0x14], edi
dec esi
jne 0x4014e7
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 4], ebx
mov dword [esi], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015ef
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x2d39d8c]
push esi
mov esi, eax
shr esi, 3
push edi
mov edi, dword [0x2d39ce4]
test esi, esi
je 0x401632
cmp eax, 0x959
jne 0x40161e
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, edi
call fcn.00401496
add edi, 8
dec esi
je 0x401632
mov eax, dword [0x2d39d8c]
jmp 0x401605
pop edi
pop esi
ret 4
Function at 0x40d169
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a36c]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405035
mov dword [ebp - 0x14], eax
cmp dword [0x440440], esi
jne 0x40d25c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d1e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d33c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d33c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d33c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x440440], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x440444], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x440448], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x440450], eax
test eax, eax
je 0x40d259
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x44044c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d281
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d274
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d296
push 4
pop eax
jmp 0x40d33e
cmp dword [ebp - 0x14], esi
je 0x40d296
push dword [0x440440]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d27b
mov eax, dword [0x44044c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d2f4
cmp dword [0x440450], edi
je 0x40d2f4
push eax
call ebx
push dword [0x440450]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d2f4
test eax, eax
je 0x40d2f4
call ecx
test eax, eax
je 0x40d2e9
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 0x40d2e9
test byte [ebp - 8], 1
jne 0x40d2f4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d324
mov eax, dword [0x440444]
cmp eax, edi
je 0x40d321
push eax
call ebx
test eax, eax
je 0x40d321
call eax
mov esi, eax
test esi, esi
je 0x40d321
mov eax, dword [0x440448]
cmp eax, edi
je 0x40d321
push eax
call ebx
test eax, eax
je 0x40d321
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x440440]
call ebx
test eax, eax
je 0x40d33c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d33e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040431b
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
mov dword [0x402452], eax
mov edx, eax
xor edi, edi
push 2
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xor esi, esi
push dword [0x403583]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401036
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret

Function at 0x4e3030
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdd000]
push edi
or ebp, 0xffffffff
jmp 0x4e3052
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e3059
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e3048
mov eax, 1
add ebx, ebx
jne 0x4e306b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e3060
jne 0x4e307c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e3060
xor ecx, ecx
sub eax, 3
jb 0x4e3090
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e3102
mov ebp, eax
add ebx, ebx
jne 0x4e309b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4e30a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4e30cc
inc ecx
add ebx, ebx
jne 0x4e30b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e30ad
jne 0x4e30c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e30ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e30ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e30dd
jmp 0x4e304e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e30ec
add edi, ecx
jmp 0x4e304e
pop esi
mov edi, esi
mov ecx, 0x88
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e310a
cmp byte [edi], 3
jne 0x4e310a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e310f
lea edi, [esi + 0xe1000]
mov eax, dword [edi]
or eax, eax
je 0x4e3187
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe7aac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe7b40]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e313c
mov ecx, edi
jns 0x4e316b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe7b48]
or eax, eax
je 0x4e3181
mov dword [ebx], eax
add ebx, 4
jmp 0x4e3159
call dword [esi + 0xe7b44]
mov ebp, dword [esi + 0xe7b4c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e31bb
sub esp, 0xffffff80
jmp 0x401a7e
Function at 0x1001a6e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1001a6f3
pop dword [ebp - 0x30]
mov eax, 0xbc4e048c
sub eax, 0xac4c5d99
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x43493
push 0
mov eax, 0xfe396e79
add eax, 0x11c9f263
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x24c85af9
sub ecx, 0x24c8079f
mov ebx, eax
mov edx, 0x1003be00
add edx, dword [ebp - 0x30]
mov edi, 0xa19a541e
add edi, 0xd7b95a06
sub dword [ebp - 0x14], 0x42b16fc9
mov esi, dword [edx]
add dword [ebp - 0x2c], 0x82713eae
xor esi, edi
add dword [ebp - 0xc], 0x2d299834
mov dword [ebx], esi
mov dword [ebp - 0x20], 0xe40a8f41
add ebx, 4
add edx, 0x60d639d
sub edx, 0x60d6399
loop 0x1001a74c
add eax, 0xc92caa8e
sub eax, 0xc92b6a53
mov ebx, eax
add eax, 5
mov ecx, 0xaea5b0a2
sub ecx, 0x9ea5b0a2
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001a6e4
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001a6e4
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x10001670
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp - 0x88], edi
mov eax, dword [edi + 0x80]
cmp eax, ebx
je 0x100018e1
add eax, esi
mov dword [ebp - 0x44], eax
cmp dword [eax + 4], ebx
jne 0x10001697
cmp dword [eax + 0xc], ebx
je 0x1000173a
mov edi, dword [eax + 0xc]
add edi, esi
push edi
call dword [ebp - 0xc0]
mov dword [ebp + 0xc], eax
call fcn.100010f2
wait
cwde
invalid
call fcn.100010f2
pop ecx
mov edx, ss
mov eax, dword [edi + 0xa0]
cmp eax, ebx
je 0x100017a6
add eax, esi
cmp dword [eax], ebx
je 0x100017a6
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x100017a1
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1000178b
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x10001793
cmp edx, ebx
jne 0x100018e1
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x10001762
add eax, dword [eax + 4]
jmp 0x1000174f
mov dword [ebp + 0xc], ebx
jmp 0x100017b1
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x100017c9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x100017e7
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edi, es
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x10001845
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000182c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x10001835
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000183f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x10001821
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x100017ab
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x10001892
dec eax
je 0x10001889
sub eax, 3
je 0x10001880
mov dword [ebp - 4], 0x40
jmp 0x100018af
mov dword [ebp - 4], 4
jmp 0x10001895
mov dword [ebp - 4], 0x20
jmp 0x10001895
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x100018e1
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x10001861
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.100010f2
pop edi
push ebx
cmp dl, bh
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x100018ed
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx