joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10045500
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10091b58
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x10045539
inc eax
mov dword [esi + 0x10], eax
jmp 0x1004564c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x1004554d
mov eax, 0xffffffc7
jmp 0x1004564e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x1004555e
cmp dword [esi + 8], eax
jne 0x1004554d
cmp dword [esi + 8], eax
jne 0x10045577
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x10045577
mov eax, 0xffffffc7
jmp 0x1004564e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x1004558b
push eax
mov ecx, ebx
call fcn.10044d30
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.1001a8f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x100455bc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.1001a910
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.100444a0
test eax, eax
mov dword [esp + 0x38], eax
je 0x100455ef
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1009a528
call fcn.1001aaf0
mov eax, dword [esp + 0x38]
jmp 0x1004564e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.10045360
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x10045633
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.10045380
mov esi, eax
test esi, esi
jne 0x10045663
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.10045360
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x10045605
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1009a528
call fcn.1001aaf0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x1009a528
call fcn.1001aaf0
mov eax, esi
jmp 0x1004564e

Function at 0x1004a010
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x1004a070
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x1004a070
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x1004a070
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x1004a070
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x1004a0b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x10055bd0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10092448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.1008b44e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.10055530
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.1008b37c
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.10087c54
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.10087c54
push 1
push 0
push 0
mov ecx, esi
call fcn.10087bfc
push 1
push 0
push 1
mov ecx, esi
call fcn.10087bfc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1008b4c0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x10055d50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10092468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.1008b44e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.10055530
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.1008b37c
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x10055e14
cmp dword [esp + 0x40], 1
jne 0x10055e12
cmp ecx, eax
jge 0x10055e14
mov eax, ecx
cmp eax, 0xc8
jge 0x10055e20
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.10055bd0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.1008b4c0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x10056620
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x10092513
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.1008608f
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.1008b6f6
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.1008cc12
test eax, eax
je 0x1005673c
mov ecx, dword [esp + 0x3c]
call fcn.1008b723
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x10056700
push edi
mov ecx, esi
call fcn.10088d6f
mov ecx, esi
call fcn.100568e0
cmp dword [esp + 0x38], 1
jne 0x10056735
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.10088eaa
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x10058930
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10058963
push esi
call fcn.10066cd0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x1005895c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x100589e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x100589d2
mov eax, dword [esi + 8]
test eax, eax
je 0x10058987
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x100589ce
cmp eax, 2
je 0x100589d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1005897a
cmp eax, 3
je 0x100589ad
cmp eax, 1
jne 0x1005897a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x1005897a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x1005897a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10058a10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x100589f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10058a10
add esp, 4
pop esi
ret

Function at 0x10059280
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100592a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100592a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100592a1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100596f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100596fb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x100597fe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x1009c1e8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1009c1e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1009c1e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1009c1e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1009c1e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x1009c1e8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x1009c1e8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1009c1e8]
xor eax, edx
inc ecx
dec edi
jne 0x10059716
pop edi
test esi, esi
je 0x10059820
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x1009c1e8]
xor eax, edx
inc ecx
dec esi
jne 0x10059802
pop esi
pop ebx
not eax
ret
Function at 0x10086e6a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10086ea2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.10084f3b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10084f13
jmp 0x10086eae
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10088558
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1008859a
call fcn.1008def2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1008859a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10088591
xor eax, eax
jmp 0x100885a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100885a8
pop edi
pop esi
pop ebx
ret 4
Function at 0x1003dc8
Capabilities:
Delete registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov edi, 0x80000002
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyTransactedW]
mov esi, eax
cmp esi, ebx
je 0x1003e3a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003faa
test dword [eax + 0x1c], 0x800
je 0x1003faa
push dword [ebp + 0xc]
push esi
push 0x10012a8
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01003269
jmp 0x1003faa
push ebx
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteTreeW]
mov esi, eax
cmp esi, ebx
je 0x1003e74
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003faa
test dword [eax + 0x1c], 0x800
je 0x1003faa
push dword [ebp + 0xc]
push esi
push 0x10012a8
push 0x14
jmp 0x1003e2a
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, ebx
je 0x1003ec7
cmp esi, 2
jne 0x1003e9a
xor esi, esi
jmp 0x1003faa
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003faa
test dword [eax + 0x1c], 0x800
je 0x1003faa
push dword [ebp + 8]
push esi
push 0x10012a8
push 0x15
jmp 0x1003e2a
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
call fcn.010045db
mov edi, 0x103
jmp 0x1003f2a
cmp esi, ebx
jne 0x1003f7c
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.01003b38
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
cmp esi, ebx
jne 0x1003faa
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.010045db
mov esi, eax
cmp esi, edi
jne 0x1003ee1
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push ebx
mov edi, 0x10013f8
push edi
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
mov esi, eax
cmp esi, ebx
je 0x1003faa
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003faa
test dword [eax + 0x1c], 0x800
je 0x1003faa
push edi
push dword [ebp + 0xc]
push esi
push 0x10012a8
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032dc
jmp 0x1003faa
mov eax, dword [section..data]
cmp eax, section..data
je 0x1003faa
test dword [eax + 0x1c], 0x800
je 0x1003faa
push dword [ebp - 0xc]
push dword [ebp + 8]
push esi
push 0x10012a8
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010033a9
mov edi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x1003fba
push dword [ebp - 4]
call edi
cmp dword [ebp - 8], ebx
je 0x1003fc4
push dword [ebp - 8]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10045db
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], 0x40
lea eax, [ebp - 4]
push eax
push 1
push dword [ebp - 4]
call fcn.010045ad
test eax, eax
jl 0x1004674
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push 2
pop ecx
mul ecx
push edx
push eax
call fcn.0100457b
test eax, eax
jl 0x1004674
test edi, edi
je 0x1004622
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x1004678
push 0
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0xea
je 0x10045ed
test esi, esi
jne 0x1004660
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
test edi, edi
je 0x100466c
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
mov eax, esi
pop esi
leave
ret 0xc
mov esi, eax
jmp 0x1004660
push 8
pop esi
jmp 0x1004660

Function at 0x1004b84
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1011ad8
call fcn.01004f94
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1016198
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1004999
cmp eax, esi
jne 0x100498c
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100499c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004973
xor esi, esi
inc esi
mov eax, dword [0x1016194]
cmp eax, esi
jne 0x10049af
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10049ea
mov eax, dword [0x1016194]
test eax, eax
jne 0x10049e4
mov dword [0x1016194], esi
push 0x10011b4
push 0x10011a8
call fcn.010048f0
pop ecx
pop ecx
test eax, eax
je 0x10049ea
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1004ab4
mov dword [0x1015e38], esi
mov eax, dword [0x1016194]
cmp eax, esi
jne 0x1004a0e
push 0x10011a4
push 0x100119c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1016194], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1004a1b
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10161a4], ebx
je 0x1004a3c
push 0x10161a4
call fcn.01004f09
pop ecx
test eax, eax
je 0x1004a3c
push ebx
push 2
push ebx
call dword [0x10161a4]
push dword [0x1015e20]
push dword [0x1015e24]
push dword [0x1015e1c]
call fcn.01004150
add esp, 0xc
mov dword [0x1015e34], eax
cmp dword [0x1015e28], ebx
jne 0x1004a9a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1015e38], ebx
jne 0x1004aa8
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1015e34]
call fcn.01004fd9
ret
call fcn.010050e1
jmp 0x1004951
Function at 0x405940
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x495400]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [esp + 0x20], ecx
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
xor eax, eax
mov dword [esp + 0xc], edx
cmp ax, word [ecx + 6]
jae 0x405a96
mov eax, edx
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
mov dword [esp + 0x44], 0
movaps xmmword [esp + 0x30], xmm0
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059c0
sub eax, esi
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.00412c30
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x30]
mov esi, dword [esp + 0x30]
cmp ecx, 0xf
mov dword [esp + 0x18], esi
cmova eax, esi
cmp dword [esp + 0x40], 5
jne 0x405a48
cmp dword [eax], 0x7865742e
jne 0x405a48
cmp byte [eax + 4], 0x74
jne 0x405a48
mov eax, dword [esp + 0xc]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], eax
mov edi, dword [eax + 0xc]
add edi, dword [esp + 0x14]
mov dword [esp + 0x28], edi
cmp dword [eax + 8], ecx
jbe 0x405a33
mov esi, eax
nop dword [eax]
movzx eax, byte [edi + edx]
inc edx
crc32 ecx, eax
cmp edx, dword [esi + 8]
jb 0x405a20
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
movq xmm0, qword [esp + 0x24]
movq qword [edi], xmm0
mov dword [edi + 8], ecx
mov ecx, dword [esp + 0x44]
cmp ecx, 0xf
jbe 0x405a72
inc ecx
mov eax, esi
cmp ecx, 0x1000
jb 0x405a68
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405aab
push ecx
push esi
call fcn.0047a114
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
inc ecx
add edx, 0x28
mov dword [esp + 0x10], ecx
movzx eax, word [eax + 6]
mov dword [esp + 0xc], edx
cmp ecx, eax
jl 0x4059a2
mov ecx, dword [esp + 0x5c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00479dd0
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x407830
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x47], 0
je 0x407852
xor eax, eax
nop dword [eax + eax]
lea edx, [esi + eax]
lea ecx, [eax + 0x12]
inc eax
xor byte [edx], cl
cmp eax, 0x46
jb 0x407840
mov byte [esi + 0x47], 0
mov eax, esi
pop esi
ret

Function at 0x407860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47b99d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x495400]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
cmp byte [esi + 7], 0
je 0x4078b2
xor edx, edx
nop dword [eax]
lea ecx, [esi + edx]
lea eax, [edx + 0x12]
inc edx
xor byte [ecx], al
cmp edx, 6
jb 0x4078a0
mov byte [esi + 7], 0
push ecx
lea eax, [esi + 6]
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.004120a0
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0xf
mov eax, dword [edi + 0x10]
jbe 0x4078d2
mov edi, dword [edi]
push eax
push edi
push ecx
lea ecx, [ebp - 0x30]
call fcn.00415410
mov esi, dword [ebp - 0x10]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x40794b
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x407941
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x407941
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0047a114
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret