joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ca0
Capabilities:
Get common file path
Get disk information
Get memory capacity
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x490478]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [0x49047c]
push esi
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], edx
call fcn.00404c90
mov edi, dword [ebp - 0xc]
mov ecx, dword [0x490480]
mov edx, dword [0x490484]
add edi, 0x23f
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x10], 0x20
lea esp, [esp]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov esi, dword [ebp - 8]
mov eax, dword [0x497c14]
shl esi, 4
add esi, dword [ebp - 0x18]
cmp eax, 0xfa9
jne 0x404d2c
mov dword [0x497c10], 0xedeb2e40
jmp 0x404d47
cmp eax, 0x3eb
jne 0x404d47
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x4976a0], 0
mov eax, dword [ebp - 8]
lea ecx, [edi + eax]
mov eax, dword [ebp - 8]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x497c14], 0x9e6
mov dword [0x497c0c], 0xf4ea3dee
jne 0x404d7e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommMask]
xor dword [ebp - 4], esi
cmp dword [0x497c14], 0x213
jne 0x404e04
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoA]
lea eax, [ebp - 0x4c0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeleteTimerQueueTimer]
lea ecx, [ebp - 0xcc0]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
lea edx, [ebp - 0x28]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub ebx, dword [ebp - 4]
cmp dword [0x497c14], 0xc
jne 0x404e18
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov edx, ebx
shr edx, 5
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
add dword [ebp - 4], eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 0x1c]
lea ecx, [edi + ebx]
xor eax, ecx
xor eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub dword [ebp - 8], eax
add edi, 0x61c88647
sub dword [ebp - 0x10], 1
jne 0x404d00
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], ebx
mov dword [eax], edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404e70
Capabilities:
Connect pipe
Read pipe
Set file attributes
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x497c14]
mov ecx, dword [0x4976a4]
shr eax, 3
sub esp, 0xc08
test eax, eax
jbe 0x404f5e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
lea ebx, [ebx]
cmp dword [0x497c14], 0x959
jne 0x404f44
push 0
lea eax, [ebp - 0xc08]
push eax
call esi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call edi
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetMessageWaitingIndicator]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
call dword [sym.imp.KERNEL32.dll_TlsFree]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
lea ecx, [ebp - 0x408]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 4]
push edx
call fcn.00404ca0
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404eb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409db0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48f588]
jne 0x409dba
repz ret
jmp fcn.004101ba

Function at 0x40fe75
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.0040a8c3
and dword [ebp - 4], 0
cmp dword [0x495688], 0
mov ebx, eax
jne 0x40ff26
push 0x402708
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40ffd7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4026fc
push edi
call esi
test eax, eax
je 0x40ffd7
push eax
call fcn.0040a851
mov dword [esp], 0x4026ec
push edi
mov dword [0x495688], eax
call esi
push eax
call fcn.0040a851
mov dword [esp], 0x4026d8
push edi
mov dword [0x49568c], eax
call esi
push eax
call fcn.0040a851
mov dword [esp], 0x4026bc
push edi
mov dword [0x495690], eax
call esi
push eax
call fcn.0040a851
pop ecx
mov dword [0x495698], eax
test eax, eax
je 0x40ff26
push 0x4026a4
push edi
call esi
push eax
call fcn.0040a851
pop ecx
mov dword [0x495694], eax
mov eax, dword [0x495694]
cmp eax, ebx
je 0x40ff7e
cmp dword [0x495698], ebx
je 0x40ff7e
push eax
call fcn.0040a8cc
push dword [0x495698]
mov esi, eax
call fcn.0040a8cc
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ff7e
test edi, edi
je 0x40ff7e
call esi
test eax, eax
je 0x40ff75
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40ff75
test byte [ebp - 0xc], 1
jne 0x40ff7e
or dword [ebp + 0x10], 0x200000
jmp 0x40ffb7
mov eax, dword [0x49568c]
cmp eax, ebx
je 0x40ffb7
push eax
call fcn.0040a8cc
pop ecx
test eax, eax
je 0x40ffb7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40ffb7
mov eax, dword [0x495690]
cmp eax, ebx
je 0x40ffb7
push eax
call fcn.0040a8cc
pop ecx
test eax, eax
je 0x40ffb7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x495688]
call fcn.0040a8cc
pop ecx
test eax, eax
je 0x40ffd7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40ffd9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401dcd
Capabilities:
Identify system language via api

Disassembly:
push ebp
sub esp, 0x144
lea ebp, [esp - 4]
mov eax, dword [0x4490c0]
xor eax, ebp
mov dword [ebp + 0x144], eax
push 0x44
mov eax, 0x42dfbe
call fcn.00415e28
mov eax, dword [ebp + 0x150]
push 1
push 0x20
push eax
lea ecx, [ebp]
call fcn.00405f00
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x24]
mov dword [ebp - 4], ebx
mov dword [ebp + 0x3c], 0xf
call fcn.004013e1
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00406940
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.00405d30
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 2
call fcn.0040b270
neg al
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x50]
mov byte [ebp - 0xd], al
mov byte [ebp - 4], 1
call fcn.00403e00
cmp byte [ebp - 0xd], bl
je 0x401ff7
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov esi, dword [sym.imp.KERNEL32.dll_FormatMessageA]
push ebx
movzx eax, ax
push 0x104
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0x40]
push ecx
movzx eax, ax
push eax
push 0x661
push ebx
mov edi, 0x1000
push edi
mov dword [ebp - 0x18], 0x10
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x717
jne 0x401eb7
push ebx
push 0x104
lea eax, [ebp + 0x40]
push eax
push ebx
push 0x661
push ebx
push edi
call esi
mov eax, dword [ebp - 0x14]
and eax, 0x3ff
cmp ax, 1
je 0x401ecb
cmp ax, 0xd
jne 0x401ed2
mov dword [ebp - 0x18], 0x180010
push dword [ebp - 0x18]
lea eax, [ebp + 0x40]
push str.Autorun
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.doWeSupportOS
call fcn.00401d59
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
mov edi, str..Setup.cpp
push edi
mov byte [ebp - 4], 3
call fcn.00401d59
mov esi, 0x44af08
push 0x1a2
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004089c0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.SetupProxy::_the_reference_in_setup.ini_leads_to_missing_file
call fcn.00401d59
push ebx
push esi
call fcn.0040ab20
pop ecx
pop ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.doWeSupportOS
call fcn.00401d59
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push edi
mov byte [ebp - 4], 4
call fcn.00401d59
push 0x1a3
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004089c0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Assume_that_we_try_to_run_32_bit_CD_only_on_64_bit_OS
call fcn.00401d59
push ebx
push esi
call fcn.0040ab20
add esp, 0x24
push str.SetupProxy
lea ecx, [ebp - 0x34]
call fcn.00401d59
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.00406e90
mov ecx, eax
call fcn.0040a380
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00401476
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.00401476
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00405ed0
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.004157c8
add ebp, 0x148
leave
ret
mov byte [ebp - 0xd], 1
jmp 0x401fba
Function at 0x40b270
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x3c
mov eax, dword [0x4490c0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00404dc0
cmp dword [eax + 0x18], 0x10
jb 0x40b29c
mov eax, dword [eax + 4]
jmp 0x40b29f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp dword [esp + 0x24], 0x10
mov esi, eax
jb 0x40b2bc
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00413f2a
add esp, 4
lea edx, [esp + 0x28]
cmp esi, 0xffffffff
push edx
mov ecx, edi
setne bl
call fcn.004040f0
cmp dword [esp + 0x3c], 0
jne 0x40b2d7
xor bl, bl
cmp dword [esp + 0x40], 0x10
jb 0x40b2eb
mov eax, dword [esp + 0x2c]
push eax
call fcn.00413f2a
add esp, 4
mov ecx, dword [esp + 0x44]
pop edi
pop esi
mov al, bl
pop ebx
xor ecx, esp
call fcn.004157c8
add esp, 0x3c
ret
Function at 0x411d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f7db
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4490c0]
xor eax, esp
mov dword [esp + 0x124], eax
push esi
mov eax, dword [0x4490c0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
lea eax, [esp + 8]
push eax
push 0x104
mov esi, ecx
lea ecx, [esp + 0x30]
push ecx
push 1
push 0
push 0
mov dword [esp + 0x20], 0x104
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryA
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x10]
call fcn.00401d59
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x13c], 0
call fcn.00404f60
cmp dword [esp + 0x24], 0x10
jb 0x411db5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00413f2a
add esp, 4
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.004157c8
add esp, 0x134
ret
Function at 0x4157c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4490c0]
jne 0x4157d2
repz ret
jmp fcn.0041a0a5
Function at 0x4189f6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x418a33
cmp dword [ebp + 0x14], edi
je 0x418a33
cmp ecx, edi
jne 0x418a3a
call fcn.00419cf0
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00415960
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x418a4e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x418a6f
cmp ebx, 0xffffffff
je 0x418a5e
push ebx
push edi
push ecx
call fcn.004157e0
add esp, 0xc
cmp esi, edi
je 0x418a1b
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x418a1b
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x418a8b
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x418a92
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x418b83
test word [esi + 0xc], 0x10c
je 0x418ae6
mov eax, dword [esi + 4]
test eax, eax
je 0x418ae6
jl 0x418be4
cmp ebx, eax
mov edi, ebx
jb 0x418ab7
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x418b8b
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041563b
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x418b7b
cmp ebx, dword [ebp - 0xc]
jb 0x418b53
cmp dword [ebp - 0xc], 0
je 0x418b10
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x418b05
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x418b0c
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x418b1b
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x418b1b
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x418bb7
push eax
push dword [ebp - 8]
push esi
call fcn.0041f0e0
pop ecx
push eax
call fcn.004228dc
add esp, 0xc
test eax, eax
je 0x418bf6
cmp eax, 0xffffffff
je 0x418be4
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x418b7b
push esi
call fcn.0041efc0
cmp eax, 0xffffffff
pop ecx
je 0x418be8
cmp dword [ebp - 4], 0
je 0x418bb7
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x418a9a
mov eax, dword [ebp + 0x14]
jmp 0x418a35
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x418ba2
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004157e0
add esp, 0xc
call fcn.00419cf0
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x418a2b
cmp dword [ebp + 0xc], 0xffffffff
je 0x418bcd
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004157e0
add esp, 0xc
call fcn.00419cf0
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x418a2b
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x418a35
or dword [esi + 0xc], 0x10
jmp 0x418be8
Function at 0x41bd81
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4493a8]
je 0x41bd9c
inc edi
cmp edi, 0x17
jb 0x41bd8d
cmp edi, 0x17
jae 0x41bf1c
push ebp
push 3
call fcn.004249e0
cmp eax, 1
pop ecx
je 0x41bee8
push 3
call fcn.004249e0
test eax, eax
pop ecx
jne 0x41bdd0
cmp dword [0x4490d4], 1
je 0x41bee8
cmp ebx, 0xfc
je 0x41bf1b
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x44f598
push ebp
call fcn.004197ea
add esp, 0xc
test eax, eax
je 0x41be06
push esi
push esi
push esi
push esi
push esi
call fcn.00415864
add esp, 0x14
push 0x104
mov esi, 0x44f5b1
push esi
push 0
mov byte [0x44f6b5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41be4a
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004197ea
add esp, 0xc
test eax, eax
je 0x41be4a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00415864
add esp, 0x14
push esi
call fcn.004155b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41be8f
push esi
call fcn.004155b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x44f8ac
push 0x440e6c
sub ecx, eax
push ecx
push eax
call fcn.00421cfa
add esp, 0x14
test eax, eax
je 0x41be8f
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00415864
add esp, 0x14
jmp 0x41be91
xor esi, esi
push 0x440e68
push ebx
push ebp
call fcn.0042496f
add esp, 0xc
test eax, eax
je 0x41beb1
push esi
push esi
push esi
push esi
push esi
call fcn.00415864
add esp, 0x14
push dword [edi*8 + 0x4493ac]
push ebx
push ebp
call fcn.0042496f
add esp, 0xc
test eax, eax
je 0x41bed3
push esi
push esi
push esi
push esi
push esi
call fcn.00415864
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004247b2
add esp, 0xc
jmp 0x41bf1b
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41bf1b
cmp ebp, 0xffffffff
je 0x41bf1b
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4493ac]
push dword [esi]
call fcn.004155b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4238a7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4238d4
call fcn.00419d03
mov dword [eax], esi
call fcn.00419cf0
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00415960
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4238b0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x423903
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00419d16
pop ecx
call fcn.00419cf0
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42392a
test al, 1
je 0x42392a
test byte [esp + 0xc], 2
je 0x42392a
call fcn.00419d03
mov dword [eax], 5
call fcn.00419cf0
mov dword [eax], 0xd
jmp 0x4238fa
xor eax, eax
pop esi
ret
Function at 0x4247b2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0041a385
xor ebx, ebx
cmp dword [0x44fbc4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x424888
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x424968
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x441898
push edi
call esi
cmp eax, ebx
je 0x424968
push eax
call fcn.0041a317
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44fbc4], eax
call esi
push eax
call fcn.0041a317
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44fbc8], eax
call esi
push eax
call fcn.0041a317
mov dword [0x44fbcc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041b88b
test eax, eax
pop ecx
pop ecx
je 0x424856
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415864
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x424888
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041a317
cmp eax, ebx
pop ecx
mov dword [0x44fbd4], eax
je 0x424888
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041a317
pop ecx
mov dword [0x44fbd0], eax
mov eax, dword [0x44fbd0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x42490d
cmp dword [0x44fbd4], ecx
je 0x42490d
push eax
call fcn.0041a38e
push dword [0x44fbd4]
mov esi, eax
call fcn.0041a38e
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x42490d
cmp edi, ebx
je 0x42490d
call esi
cmp eax, ebx
je 0x4248da
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4248da
test byte [ebp - 0x18], 1
jne 0x42490d
lea eax, [ebp - 0x10]
push eax
call fcn.0041b8fe
test eax, eax
pop ecx
je 0x4248f5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00415864
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x424904
or dword [ebp + 0x10], 0x200000
jmp 0x424948
or dword [ebp + 0x10], 0x40000
jmp 0x424948
mov eax, dword [0x44fbc8]
cmp eax, dword [ebp - 8]
je 0x424948
push eax
call fcn.0041a38e
cmp eax, ebx
pop ecx
je 0x424948
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x424948
mov eax, dword [0x44fbcc]
cmp eax, dword [ebp - 8]
je 0x424948
push eax
call fcn.0041a38e
cmp eax, ebx
pop ecx
je 0x424948
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44fbc4]
call fcn.0041a38e
cmp eax, ebx
pop ecx
je 0x424968
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42496a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10004cd0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x10004d02
lea esp, [esp]
test cl, 3
je 0x10004d02
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x11c6a460]
add ecx, 1
sub esi, 1
jne 0x10004ce0
cmp esi, 0x20
push ebx
push edi
jb 0x10004eec
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11c6a860]
xor edx, dword [ebx*4 + 0x11c6ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11c6a460]
add ecx, 4
xor edx, dword [eax*4 + 0x11c6b060]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11c6a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11c6ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11c6a460]
add ecx, 4
xor eax, dword [edx*4 + 0x11c6b060]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11c6a860]
xor edx, dword [ebx*4 + 0x11c6ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11c6a460]
xor edx, dword [eax*4 + 0x11c6b060]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11c6a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11c6ac60]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11c6a460]
xor eax, dword [edx*4 + 0x11c6b060]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11c6a860]
xor edx, dword [ebx*4 + 0x11c6ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11c6a460]
xor edx, dword [eax*4 + 0x11c6b060]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11c6a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11c6ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11c6a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x11c6b060]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x11c6a860]
xor edx, dword [ebx*4 + 0x11c6ac60]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x11c6a460]
add ecx, 4
xor edx, dword [eax*4 + 0x11c6b060]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x11c6a860]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x11c6ac60]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x11c6a460]
and edx, 0xff
xor eax, dword [edx*4 + 0x11c6b060]
sub edi, 1
jne 0x10004d12
cmp esi, 4
jb 0x10004f39
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x11c6a860]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x11c6ac60]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x11c6a460]
and eax, 0xff
xor edi, dword [eax*4 + 0x11c6b060]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x10004ef6
test esi, esi
pop edi
pop ebx
je 0x10004f5d
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x11c6a460]
add ecx, 1
sub esi, 1
jne 0x10004f40
not eax
pop esi
ret