joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bfa6
Capabilities:
Delete file
Get common file path
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov esi, eax
lea eax, [ebp - 0x410]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40bfd8
push edi
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
and word [ebp - 0x208], 0
lea eax, [ebp - 0x208]
push eax
push 0
push 0x41637c
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [esi + 0x694]
push 1
push 1
push 2
lea ecx, [ebp - 0x208]
push ecx
push eax
call fcn.0040be87
test eax, eax
je 0x40c05c
push dword [esi + 0x208]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x40c037
lea eax, [ebp - 0x208]
push eax
call fcn.00404b8f
pop ecx
jmp 0x40c03d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c04f
push dword [esi + 0x208]
mov ecx, eax
call fcn.004049e7
pop ecx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
pop esi
leave
ret

Function at 0x40c272
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [ebx + 0x694]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0040952a
test eax, eax
je 0x40c31d
push esi
push edi
xor edi, edi
push 0x208
lea eax, [ebp - 0x212]
push edi
push eax
mov word [ebp - 0x214], di
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
add esp, 0xc
mov eax, 0x419a88
call fcn.00405d37
mov esi, eax
cmp word [esi], di
je 0x40c31b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c2f2
test al, 0x10
je 0x40c2f2
push esi
mov eax, 0x104
lea edi, [ebp - 0x214]
call fcn.00404c75
xor edi, edi
jmp 0x40c2fe
push esi
lea esi, [ebp - 0x214]
call int.00404ed1
pop ecx
push 5
push edi
push edi
lea eax, [ebp - 0x214]
push eax
push str.open
push dword [ebx + 0x208]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov eax, dword [ebp - 4]
call fcn.00408dd7
leave
ret
Function at 0x41bc00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x426cfc]
mov dword [ebp - 4], eax
jmp 0x41bc19
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x41bc36
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x41bc10
mov esp, ebp
pop ebp
ret

Function at 0x41bc50
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x426d0c], eax
je 0x41bc6e
mov eax, 0x10dd
jmp 0x41bd4f
mov eax, dword [0x426d1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41bcec
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x41bcca
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x41bcca
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.0041be10
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00411091
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x41bc76
mov dword [0x426d1c], 0
call fcn.0041bda0
mov ecx, dword [0x426d18]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x41bd39
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00411091
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x41bd04
mov dword [0x426d18], 0
mov dword [0x426d0c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41c440
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x41c455
xor eax, eax
jmp 0x41c4ca
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
add edx, 0x10000
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x41c482
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x41c4c5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x41c4c3
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x41c4bf
mov ecx, dword [ebp - 0x10]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x41c4c3
xor eax, eax
jmp 0x41c4ca
jmp 0x41c479
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x41c5c0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x426d10], 0
je 0x41c5d9
mov eax, dword [0x426d10]
jmp 0x41c679
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x41c5eb
xor eax, eax
jmp 0x41c679
push 8
call fcn.004110eb
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41c641
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x41c62a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00411091
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x426d10], eax
mov dword [0x426d14], 0
mov eax, dword [ebp - 4]
jmp 0x41c679
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x41c65b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x41c60b
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x426d18]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x426d18], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x41d0c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.0041d1c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x41d17c
cmp dword [ebp - 4], 0x50000000
jb 0x41d0fc
cmp dword [ebp - 4], 0x80000000
ja 0x41d0fc
mov dword [ebp - 4], 0x80010000
jmp 0x41d0d5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0041116d
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41d122
jmp 0x41d17c
cmp dword [ebp - 0x10], 0x10000
jne 0x41d165
cmp dword [ebp - 0x14], 0x10000
jb 0x41d165
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41d158
mov eax, dword [ebp - 0x24]
jmp 0x41d17e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x41d177
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.0041d1c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x41d0d5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41d200
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.0041d300
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x41d2c4
cmp dword [ebp - 4], 0x50000000
jb 0x41d241
cmp dword [ebp - 4], 0x80000000
ja 0x41d241
mov dword [ebp - 4], 0x4fff0000
jmp 0x41d21a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.0041116d
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x41d267
jmp 0x41d2c4
cmp dword [ebp - 0x10], 0x10000
jne 0x41d2aa
cmp dword [ebp - 0x14], 0x10000
jb 0x41d2aa
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x41d29d
mov eax, dword [ebp - 0x24]
jmp 0x41d2c6
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x41d2bf
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.0041d300
add esp, 4
mov dword [ebp - 4], eax
jmp 0x41d21a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41d330
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x426d0c], eax
je 0x41d355
mov eax, 0x10dd
jmp 0x41d4ed
cmp dword [0x426d10], 0
je 0x41d368
mov eax, dword [0x426d10]
jmp 0x41d4ed
cmp dword [ebp + 8], 0
jne 0x41d378
mov eax, 6
jmp 0x41d4ed
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x41d3a1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x426d10], ecx
mov edx, dword [ebp + 8]
mov dword [0x426d14], edx
mov eax, dword [ebp - 0xc]
jmp 0x41d4ed
push 0x18
call fcn.004110eb
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41d3fa
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x426d10], ecx
cmp dword [ebp - 0x18], 0
je 0x41d3e9
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00411091
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x426d14], ecx
mov eax, dword [ebp - 0xc]
jmp 0x41d4ed
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00411276
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00411276
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 4], edx
cmp dword [ebp - 8], 0
je 0x41d43a
cmp dword [ebp - 8], 0x1e
jbe 0x41d456
mov dword [ebp - 0xc], 9
cmp dword [0x426d04], 0
je 0x41d451
jmp 0x41d3ca
jmp 0x41d3c1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x41d47d
mov dword [ebp - 0xc], 9
cmp dword [0x426d04], 0
je 0x41d478
jmp 0x41d3ca
jmp 0x41d3c1
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41d4aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x41d3c1
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x426d1c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x426d1c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x41d570
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x426d58], 0
je 0x41d586
xor eax, eax
jmp 0x41d7a2
cmp dword [0x426d54], 0
je 0x41d599
mov eax, dword [0x426d54]
jmp 0x41d7a2
push 0x24
push 0
push 0x426d28
call fcn.0041116d
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x426d28], eax
push 0
push 0
push 0x414e64
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x426d2c], eax
cmp dword [0x426d2c], 0
jne 0x41d63e
mov dword [0x426d58], 1
cmp dword [0x426d2c], 0
je 0x41d5f1
mov eax, dword [0x426d2c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x426d30], 0
mov dword [0x426d34], 0
mov dword [0x426d38], 0
mov dword [0x426d3c], 0
mov dword [0x426d40], 0
mov dword [0x426d44], 0
mov dword [0x426d48], 0
xor eax, eax
jmp 0x41d7a2
push 0x414e7c
mov ecx, dword [0x426d2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426d30], eax
push 0x414e94
mov edx, dword [0x426d2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426d34], eax
push 0x414ea4
mov eax, dword [0x426d2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426d38], eax
push 0x414eb4
mov ecx, dword [0x426d2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426d3c], eax
push 0x414ec4
mov edx, dword [0x426d2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426d40], eax
push 0x414ed4
mov eax, dword [0x426d2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426d44], eax
push 0x414ee8
mov ecx, dword [0x426d2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x426d48], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.0041116d
add esp, 0xc
mov eax, 0xb
mov word [ebp - 8], ax
cmp dword [0x426d30], 0
je 0x41d723
cmp dword [0x426d34], 0
je 0x41d723
cmp dword [0x426d40], 0
je 0x41d723
cmp dword [0x426d44], 0
je 0x41d723
cmp dword [0x426d48], 0
jne 0x41d728
jmp 0x41d5d2
lea ecx, [ebp - 8]
push ecx
call dword [0x426d30]
movzx edx, word [ebp - 8]
cmp edx, 0xb
jge 0x41d740
jmp 0x41d5d2
push 0
push 0
mov eax, dword [0x426d28]
push eax
call dword [0x426d34]
test eax, eax
jne 0x41d759
jmp 0x41d5d2
cmp dword [0x426d3c], 0
je 0x41d793
cmp dword [0x426d38], 0
je 0x41d793
call dword [0x426d3c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
or edx, 0x2704
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call dword [0x426d38]
mov dword [0x426d54], 0x426d28
mov eax, dword [0x426d54]
mov esp, ebp
pop ebp
ret
Function at 0x41e360
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x425bc0
push 0x423fc5
mov eax, dword fs:[0]
push eax
add esp, 0xffffffb8
push ebx
push esi
push edi
mov eax, dword [0x411788]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x1c
push 0
lea eax, [ebp - 0x34]
push eax
call fcn.0041116d
add esp, 0xc
mov dword [ebp - 4], 0
push 0x1c
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
ja 0x41e3df
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x41e505
cmp dword [ebp - 0x24], 0x1000
jne 0x41e400
mov eax, dword [ebp - 0x20]
and eax, 0xff
cmp eax, 1
je 0x41e400
mov ecx, dword [ebp - 0x20]
and ecx, 0x100
je 0x41e421
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x41e505
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
je 0x41e456
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x48], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x48]
jmp 0x41e505
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x41e48b
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x4c]
jmp 0x41e505
mov edx, dword [ebp - 0x3c]
movzx eax, word [edx + 0x14]
test eax, eax
jne 0x41e4b4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x50], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x50]
jmp 0x41e505
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x54]
jmp 0x41e505
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41edf0
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x425c40
push 0x423fc5
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x411788]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x41ee3a
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x41ee70
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x34]
jmp 0x41effb
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x41eea8
push 0xbf
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x38]
jmp 0x41effb
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x41eed4
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x3c]
jmp 0x41effb
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x41eef7
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x41efa6
push 0x414f1c
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
add eax, dword [ebp - 0x20]
push eax
call fcn.00411032
add esp, 8
test eax, eax
jne 0x41efa1
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0xc], 0
je 0x41ef42
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 0x10], 0
jne 0x41ef44
jmp 0x41efa6
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
cmp dword [eax], 0x40
jb 0x41ef71
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0x727444
je 0x41ef73
jmp 0x41efa6
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x41ef87
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
mov dword [eax + 8], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x40]
jmp 0x41effb
jmp 0x41eeee
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x44], 0
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x44]
jmp 0x41effb
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41f400
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0x678
jne 0x41f421
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x41f433
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41f57b
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x14]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41f578
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41f55c
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
call fcn.004112da
add esp, 0xc
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x5c
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x14]
push edx
call fcn.004112da
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x41f539
lea ecx, [ebp - 0x10]
push ecx
push 0x40
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x41f537
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x664
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004112da
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 8], 1
jmp 0x41f540
mov dword [ebp - 8], 1
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8
Function at 0x1001e5f9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dl, byte [ecx + 0x100]
mov byte [ebp - 0xc], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [eax + 0x101]
mov byte [ebp - 0x14], cl
mov dword [ebp - 0x10], 0
jmp 0x1001e630
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
jge 0x1001e6c8
mov cl, byte [ebp - 0xc]
add cl, 1
mov byte [ebp - 0xc], cl
mov edx, dword [ebp - 0xc]
and edx, 0xff
mov eax, dword [ebp - 8]
mov cl, byte [eax + edx]
mov byte [ebp - 4], cl
mov dl, byte [ebp - 0x14]
add dl, byte [ebp - 4]
mov byte [ebp - 0x14], dl
mov eax, dword [ebp - 0x14]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov al, byte [esi + eax]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0x14]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov al, byte [ebp - 4]
mov byte [edx + ecx], al
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
mov edx, dword [ebp - 8]
mov al, byte [ebp - 4]
add al, byte [edx + ecx]
mov byte [ebp - 4], al
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dl, byte [edx]
xor dl, byte [eax + ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov byte [eax], dl
jmp 0x1001e627
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 0xc]
push ebp
hlt
mov byte [ecx + 0x100], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0x14]
mov byte [eax + 0x101], cl
pop esi
mov esp, ebp
pop ebp
ret