joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016a1
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi], edi
jne 0x4016f5
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esi], eax
test eax, eax
je 0x4016f5
mov ecx, dword [ebp + 0xc]
test ecx, ecx
push 0x20
pop eax
cmove ecx, eax
cdq
idiv ecx
push 0x40
push 0x3000
lea eax, [edx + ecx]
mov dword [esi + 8], eax
shl eax, 7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [esi + 4], eax
test eax, eax
jne 0x4016f5
mov dword [esi], edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x401865
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push 0xfffffffffffffffb
pop eax
mov cl, byte [eax + edx]
cmp cl, 0x90
je 0x40187b
cmp cl, 0xcc
jne 0x4018c4
inc eax
cmp eax, 0xffffffff
jle 0x40186e
mov al, byte [edx]
cmp al, 0x8b
je 0x40188b
cmp al, 0x89
jne 0x4018c4
cmp byte [edx + 1], 0xff
jne 0x4018c4
mov eax, dword [ebp + 0xc]
lea ecx, [edx + 2]
sub eax, edx
mov byte [edx - 5], 0xe9
mov dword [edx - 4], eax
mov eax, dword [ebp + 0x10]
push 0
push 0
mov dword [eax], ecx
mov eax, 0xf9eb
mov word [edx], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
pop ebp
ret 0xc
xor al, al
jmp 0x4018c0

Function at 0x409b74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00409834
Function at 0x417c10
Capabilities:
Accept command line arguments
Check os version

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardType]
push edi
push 0
call esi
push 1
call esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [esp + 0xc]
mov esi, ebx
push ecx
push eax
and esi, 0xff
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edx, edx
cmp esi, 5
mov dl, bh
mov edi, edx
jne 0x417c60
cmp edi, 1
jae 0x417c6e
mov dword [0x4c4f58], 0x409
jmp 0x417c78
ja 0x417c6e
mov dword [0x4c4f58], 0x409
jmp 0x417c78
mov dword [0x4c4f58], 0x7f
test eax, eax
je 0x417c8d
mov eax, dword [0x4c5a84]
push 0x4c5770
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4ba1a5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2338
cmp edx, dword [eax]
je 0x4ba1c7
add eax, 8
inc ecx
cmp eax, 0x4c23c8
jl 0x4ba1b8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2338]
jne 0x4ba2f5
mov eax, dword [0x4c6cc4]
cmp eax, 1
je 0x4ba2cf
test eax, eax
jne 0x4ba1f8
cmp dword [0x4c2264], 1
je 0x4ba2cf
cmp edx, 0xfc
je 0x4ba2f5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ba22f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bab90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bb020
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4ba272
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bb020
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bf7fc
push edi
call fcn.004bcef0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bab90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004baba0
lea eax, [ebp - 0xa0]
push 0x4bf7dc
push eax
call fcn.004baba0
push dword [esi + 0x4c233c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004baba0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bce64
add esp, 0x2c
pop edi
jmp 0x4ba2f5
lea eax, [ebp + 8]
lea esi, [esi + 0x4c233c]
push 0
push eax
push dword [esi]
call fcn.004bb020
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 0xf18a20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb0f000]
push edi
or ebp, 0xffffffff
jmp 0xf18a42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf18a49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf18a38
mov eax, 1
add ebx, ebx
jne 0xf18a5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf18a50
jne 0xf18a6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf18a50
xor ecx, ecx
sub eax, 3
jb 0xf18a80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf18af2
mov ebp, eax
add ebx, ebx
jne 0xf18a8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xf18a98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xf18abc
inc ecx
add ebx, ebx
jne 0xf18aa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf18a9d
jne 0xf18ab9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf18a9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf18adc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf18acd
jmp 0xf18a3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf18adc
add edi, ecx
jmp 0xf18a3e
pop esi
mov edi, esi
mov ecx, 0x779
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf18afa
cmp byte [edi], 7
jne 0xf18afa
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 0xf18aff
lea edi, [esi + 0xb16000]
mov eax, dword [edi]
or eax, eax
je 0xf18b6e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1cbb0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb1cbec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf18b2c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb1cbf4]
or eax, eax
je 0xf18b68
mov dword [ebx], eax
add ebx, 4
jmp 0xf18b49
call dword [esi + 0xb1cbf0]
mov ebp, dword [esi + 0xb1cbf8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0xf18ba2
sub esp, 0xffffff80
jmp 0x408b96
Function at 0x100024f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10063c15
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x100988d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
push dword [esi + 0xc]
mov ecx, dword [0x10099dfc]
lea eax, [ebp - 0x14]
push eax
call sym.ExtendScript.dll_public:_static_class_ScCore::String___cdecl_ScScript::ScriptContainer::errorMessage_class_ScCore::Error_const__
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_bool___thiscall_ScCore::String::operator_class_ScCore::String_const__const]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
test bl, bl
je 0x1000261b
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
push 0
push 1
mov esi, dword [edi]
push 0
push eax
push eax
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x10070958]
mov ecx, edi
call esi
mov esi, eax
test esi, esi
je 0x10002605
push 0
push dword [esi + 0x14]
lea ecx, [ebp - 0x10]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_char_const___class_ScCore::Encoder_const__]
push 0x2c
mov dword [ebp - 4], 1
call dword [sym.imp.ScCore.dll_public:_static_void____cdecl_ScCore::Heap::operator_new_unsigned_int_]
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x100025e4
push 0
lea ecx, [ebp - 0x10]
push ecx
push dword [esi + 0xc]
mov ecx, eax
push dword [esi + 4]
call sym.ExtendScript.dll_public:_static_class_ScCore::String___cdecl_ScScript::ScriptContainer::errorMessage_class_ScCore::Error_const__
lea ecx, [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x10]
xor esi, esi
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov ecx, dword [0x10099dfc]
add eax, 0xc
push eax
call sym.ExtendScript.dll_public:_static_class_ScCore::String___cdecl_ScScript::ScriptContainer::errorMessage_class_ScCore::Error_const__
mov ecx, dword [esi]
push eax
mov esi, dword [ecx + 0x30]
mov ecx, esi
call dword [0x10070958]
mov ecx, dword [ebp - 0x18]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10004300
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006408f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x100988d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov eax, esi
and eax, 0xe0000000
cmp eax, 0x20000000
jg 0x100043cc
je 0x100043c7
cmp eax, 0x80000000
je 0x100043c7
test eax, eax
jne 0x100043d3
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::constructor_void_]
mov eax, dword [0x10099e0c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xa
mov ecx, dword [eax]
test ecx, ecx
je 0x1000437e
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::acquire_void_]
mov ecx, dword [edi]
push esi
mov byte [ebp - 4], 1
call sym.ExtendScript.dll_public:_static_class_ScCore::String___cdecl_ScScript::ScriptContainer::errorMessage_class_ScCore::Error_const__
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::setString_unsigned_short_int_const__]
mov eax, dword [0x10099e0c]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
test ecx, ecx
je 0x100043ac
add ecx, 0x28
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Lock::release_void_]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.ScCore.dll_public:_double___thiscall_ScCore::Variant::getDouble_void_const]
lea ecx, [ebp - 0x2c]
fstp qword [ebp - 0x14]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::Variant::destructor_void_]
jmp 0x100043ef
xorps xmm0, xmm0
jmp 0x100043ea
cmp eax, 0x40000000
je 0x100043df
and esi, 0x1fffffff
movd xmm0, esi
jmp 0x100043e6
movzx eax, si
movd xmm0, eax
cvtdq2pd xmm0, xmm0
movsd qword [ebp - 0x14], xmm0
fld qword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b1f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066c15
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100988d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScScript::ScopeInfo.0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_void_]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
mov dword [esi + 0xc], 0
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::SparseArray::constructor_void_]
mov dword [esi + 0x2c], 0
mov eax, esi
mov dword [esi + 0x30], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x20], 0
mov dword [esi + 4], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0x10000
mov dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001bdc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x1001bdcf
pop dword [ebp - 0x28]
mov eax, 0x1001bdcf
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x9d5fb7ec
add dword [ebp - 0x38], 0xb0f28d5f
mov dword [ebp - 0x34], 0xd06f0132
sub dword [ebp - 0x34], 0x9e3bb4ed
mov dword [ebp - 0x30], 0xbab83c35
add dword [ebp - 0x30], 0x919407f9
mov dword [ebp - 0x2c], 0x3570bf99
sub dword [ebp - 0x2c], 0x3570bf99
lea eax, [ebp - 0x38]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0x1a220c3d
add dword [ebp - 0x38], 0x5a505d19
mov dword [ebp - 0x34], 0x6607d8e7
add dword [ebp - 0x34], 0xdb64888e
mov dword [ebp - 0x30], 0x9f04005e
sub dword [ebp - 0x30], 0x3b9493f2
mov dword [ebp - 0x2c], 0xab193642
sub dword [ebp - 0x2c], 0xab193642
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x43679
push 0
call eax
mov ecx, 0x3ae1
xor edi, edi
add edi, eax
mov ebx, 0x100a9e00
add ebx, dword [ebp - 0x28]
mov esi, 0x6c10a5bb
sub esi, 0xce256a64
xor dword [ebp - 0x24], esi
mov edx, dword [ebx]
xor edx, esi
add dword [ebp - 0xc], 0x2807a1ac
mov dword [edi], edx
add dword [ebp - 0x20], 0x6e0ed705
add edi, 4
add ebx, 4
loop 0x1001bed8
add eax, 0x539da00a
add eax, 0xac633e4d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x670820fc
sub ecx, 0x570820fc
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x4078af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4078be
pop dword [ebp - 0x44]
mov eax, 0x562cae75
add eax, 0xaa13ca49
sub dword [ebp - 0x44], eax
push 0x40
push 0x1000
push 0x3a6d0
push 0
mov eax, 0xa9b32d69
add eax, 0x568eb4ab
add eax, dword [ebp - 0x44]
call dword [eax]
mov ecx, 0x11c8a6a8
add ecx, 0xee379452
xor edx, edx
add edx, eax
mov edi, 0x7dcb01be
add edi, 0x82787e42
add edi, dword [ebp - 0x44]
mov esi, 0xd02e73d9
add dword [ebp - 0x24], 0x5af18477
mov ebx, dword [edi]
mov dword [ebp - 0x28], 0xdfe1a679
xor ebx, esi
add dword [ebp - 0x1c], 0xeff3b0c9
mov dword [edx], ebx
xor dword [ebp - 4], 0x5b98bcd2
add edx, 0x2658d75b
add edx, 0xd9a728a9
add edi, 0x3c631ebd
sub edi, 0x3c631eb9
loop 0x407919
add eax, 0xbac5e097
sub eax, 0xbac501dc
mov ebx, eax
add eax, 0x6fd8c1ff
add eax, 0x90273e06
mov ecx, 0x4944872a
add ecx, 0xb6fb78d6
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x458370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c000]
push edi
or ebp, 0xffffffff
jmp 0x458392
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x458399
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x458388
mov eax, 1
add ebx, ebx
jne 0x4583ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4583a0
jne 0x4583bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4583a0
xor ecx, ecx
sub eax, 3
jb 0x4583d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x458442
mov ebp, eax
add ebx, ebx
jne 0x4583db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4583e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45840c
inc ecx
add ebx, ebx
jne 0x4583f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4583ed
jne 0x458409
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4583ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45842c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45841d
jmp 0x45838e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45842c
add edi, ecx
jmp 0x45838e
pop esi
mov edi, esi
mov ecx, 0x478
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45844a
cmp byte [edi], 6
jne 0x45844a
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 0x45844f
lea edi, [esi + 0x56000]
mov eax, dword [edi]
or eax, eax
je 0x4584be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5a9f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5aa64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45847c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5aa6c]
or eax, eax
je 0x4584b8
mov dword [ebx], eax
add ebx, 4
jmp 0x458499
call dword [esi + 0x5aa68]
mov ebp, dword [esi + 0x5aa70]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x4584f2
sub esp, 0xffffff80
jmp 0x406dc0
Function at 0x40149f
Capabilities:
Check for time delay via queryperformancecounter
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
and dword [ebp - 0x44c], 0
mov dword [0x41dd94], 0x6926
push 0x6926
call fcn.004037b5
pop ecx
mov dword [0x41dd8c], eax
push 0x6926
push 0x408048
push dword [0x41dd8c]
call fcn.004036ba
add esp, 0xc
push 0x100
call fcn.004037b5
pop ecx
mov dword [0x41dd90], eax
push 0x100
push 0x40e970
push dword [0x41dd90]
call fcn.004036ba
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [0x40f31c], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x40f328], eax
cmp dword [0x40f328], 0
jne 0x401532
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.VirtualProtect
push dword [0x40f328]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40f314], eax
cmp dword [0x40f314], 0
jne 0x401559
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp loc.004200d3
Function at 0x4028a5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x10]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
and dword [ebp - 0x14], 0
jmp 0x402900
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
add eax, 0x28
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
jge 0x402a9d
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x402a0a
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [0x40803c]
sub eax, 4
mov dword [0x408040], eax
cmp dword [ebp - 4], 0
jle 0x4029f8
mov eax, dword [0x408040]
add eax, 8
mov dword [0x408040], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
push 4
push 0x1000
push dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x40803c]
imul eax, eax, 0x63
mov dword [0x40803c], eax
mov eax, dword [0x408040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x408040], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x408040]
shl eax, 1
mov dword [0x40803c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
push 0
push dword [ebp - 0xc]
jmp loc.0041f000
mov eax, dword [0x408040]
shl eax, 3
mov dword [0x408040], eax
jmp 0x4028f0
mov eax, dword [0x40803c]
imul eax, dword [0x408040]
mov ecx, dword [0x408040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40803c], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x408040]
add eax, 7
mov dword [0x40803c], eax
mov eax, dword [ebp - 8]
push dword [eax + 0x10]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x14]
push ecx
push dword [ebp - 0xc]
call fcn.004036ba
add esp, 0xc
mov eax, dword [0x40803c]
imul eax, eax, 0x63
mov dword [0x40803c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov eax, dword [0x408040]
imul eax, dword [0x408040]
sub eax, 3
mov dword [0x40803c], eax
jmp 0x4028f0
mov eax, dword [0x40803c]
mov ecx, dword [0x408040]
lea eax, [ecx + eax - 9]
mov dword [0x40803c], eax
leave
ret
Function at 0x412678
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x412687
pop dword [ebp - 0x3c]
mov eax, 0xf12dbcf8
sub eax, 0xf0ec9671
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x391c6
push 0
mov eax, 0xac1f5b0a
add eax, 0x542205c2
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x50f4
xor esi, esi
add esi, eax
mov edx, 0x446800
add edx, dword [ebp - 0x3c]
mov edi, 0x1e5df5f2
add edi, 0xf42c5bd4
mov ebx, dword [edx]
sub dword [ebp - 0x1c], edx
xor ebx, edi
add dword [ebp - 0x20], edx
mov dword [esi], ebx
sub dword [ebp - 0x1c], esi
add esi, 4
add edx, 0xf64d2bb1
sub edx, 0xf64d2bad
loop 0x4126dc
add eax, 0x136a3
xor ebx, ebx
add ebx, eax
add eax, 0x559302a2
sub eax, 0x5593029d
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret