joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002a10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x100182ec], 0
mov dword [0x100182f0], 0
mov dword [0x100182fc], 0
mov dword [0x100182e4], 0x3e3a
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x10002b54
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, eax
add edx, 1
mov dword [0x100182e4], 0x5a2
mov esi, dword [0x100182ec]
add esi, 1
mov dword [ebp - 0x24], eax
mov eax, esi
mov dword [ebp - 0x28], edx
cdq
idiv ecx
mov dword [0x100182ec], edx
mov esi, dword [0x100182f0]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x100182f0], edx
mov ecx, dword [0x100182ec]
mov bl, byte [edi + ecx]
mov byte [0x100182f4], bl
mov bl, byte [edi + edx]
mov byte [edi + ecx], bl
mov bl, byte [0x100182f4]
mov ecx, dword [0x100182f0]
mov byte [edi + ecx], bl
mov dword [0x100182e8], 0x16b1
mov ecx, dword [0x100182ec]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x100182f0]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x100182fc], edx
mov dword [0x100182e8], 0x13c9
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.10001000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov dword [0x100182e8], 0xb0e
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x10002a69
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10002d10
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x100182e4], 0x1bc1
mov dword [0x100182f0], 0
mov byte [0x100182f4], 0
mov dword [0x100182ec], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x100182e4]
add eax, 0x567
mov dword [0x100182e4], eax
mov eax, dword [0x100182ec]
add eax, 1
mov dword [0x100182ec], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10002d55
mov dword [0x100182e4], 0x2d6
mov dword [0x100182ec], 0
mov dword [0x100182f8], 0
mov eax, dword [0x100182f0]
mov ecx, dword [0x100182ec]
mov edx, dword [ebp - 0x18]
movzx esi, byte [edx + ecx]
add esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
mov eax, 0x100
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, ecx
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
mov ebx, dword [ebp - 0x20]
add ebx, edx
mov dword [0x100182f8], ebx
mov dword [0x100182e4], 0x23ea
mov eax, ebx
cdq
mov ebx, dword [ebp - 0x28]
idiv ebx
mov dword [0x100182f0], edx
mov ecx, dword [0x100182ec]
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov byte [0x100182f4], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov dword [0x100182e4], 0xaf6
mov bl, byte [0x100182f4]
mov ecx, dword [0x100182f0]
mov byte [esi + ecx], bl
mov dword [0x100182e8], 0x1eaf
mov ecx, dword [0x100182ec]
add ecx, 1
mov dword [0x100182ec], ecx
cmp ecx, 0x100
jl 0x10002d9e
mov eax, dword [0x100182e4]
mov ecx, eax
add ecx, 0xffffeafb
mov dword [0x100182e8], ecx
add eax, 0xd7f
mov dword [0x100182e4], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x401178
Capabilities:
Encode data using xor

Disassembly:
push 0x401218
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ecx + ecx], al
cld
ja 0x40117d
mov dl, 0x75
dec ecx
mov ebp, 0x15f062a7
aam 0xc6
les eax, [eax]
add byte [eax], al
add byte [eax], al
add byte [ecx], al
add byte [eax], al
add byte [eax], al
add byte [edi + 0x41000000], dh
arpl word [esi + 0x46], si
jne 0x401212
imul esi, dword [eax + 0x77], 0x68
push esi
add byte [ebx + 0x62], dh
pop esp
push esi
add byte [eax], al
add byte [eax], al
push eax
add byte [eax], al
add byte [edi - 0x35e75a40], dl
out dx, eax
pop es
dec esp
xchg ecx, eax
cmpsb byte [esi], byte es:[edi]
call 0x95890e92
lcall pe_dos_header, 0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
add byte [edx], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or byte [esi], 0
add byte [eax], al
add byte [eax], al
add al, dh
pop ecx
inc eax
add byte [eax + eax], cl
add byte [esi + 0x42], dl
xor eax, 0x2a263621
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [esi], bh
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
or al, byte [eax]
or dword [eax + eax], eax
add byte [eax], al
add byte [eax], al
add byte [eax + 0x2a], ch
inc eax
add byte [eax + 0x20004015], ah
int1
xor byte [eax], al
add bh, bh
invalid
Function at 0x401270
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x460458
push 0x418ab0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, dword [0x46800c]
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 0x4012ba
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 0x4012f0
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 0x40147b
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 0x401328
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 0x40147b
mov eax, dword [ebp - 0x24]
movzx ecx, word [eax + 0x14]
test ecx, ecx
jne 0x401354
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 0x40147b
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 0x401377
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 0x401426
push 0x4560f8
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
add eax, dword [ebp - 0x20]
push eax
call fcn.004381c0
add esp, 8
test eax, eax
jne 0x401421
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0xc], 0
je 0x4013c2
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
cmp dword [ecx + eax + 0x10], 0
jne 0x4013c4
jmp 0x401426
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 0x4013f1
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 4], 0x727444
je 0x4013f3
jmp 0x401426
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 8], 0
jne 0x401407
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 0x40147b
jmp 0x40136e
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 0x40147b
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 0x401730
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 0x401751
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
cmp eax, dword [ebp + 0xc]
jbe 0x401763
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4018ab
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 0x4018a8
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 0x40188c
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.00418c50
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.00418c50
add esp, 0xc
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x18], 0
je 0x401869
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 0x401867
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.00418c50
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 0x401870
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 0x401bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x46a1cc]
mov dword [ebp - 4], eax
jmp 0x401bd9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x401bf6
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 0x401bd0
mov esp, ebp
pop ebp
ret

Function at 0x401c00
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x46a1dc], eax
je 0x401c1e
mov eax, 0x10dd
jmp 0x401cff
mov eax, dword [0x46a1ec]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401c9c
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 0x401c7a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x401c7a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00401d70
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.00416d7c
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x401c26
mov dword [0x46a1ec], 0
call fcn.00401d10
mov ecx, dword [0x46a1e8]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x401ce9
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.00416d7c
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x401cb4
mov dword [0x46a1e8], 0
mov dword [0x46a1dc], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402270
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 0x402285
xor eax, eax
jmp 0x4022fa
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 0x4022b2
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0x38d
jae 0x4022f5
mov edx, dword [ebp - 0x10]
imul edx, edx, 0x48
mov eax, dword [ebp - 0xc]
cmp dword [eax + edx + 0x40], 0
je 0x4022f3
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 0x4022ef
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 0x4022f3
xor eax, eax
jmp 0x4022fa
jmp 0x4022a9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4023a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x46a1e0], 0
je 0x4023b9
mov eax, dword [0x46a1e0]
jmp 0x402459
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x4023cb
xor eax, eax
jmp 0x402459
push 8
call fcn.004172d1
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x402421
mov dword [ebp - 4], 8
cmp dword [ebp - 8], 0
je 0x40240a
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00416d7c
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov dword [0x46a1e0], eax
mov dword [0x46a1e4], 0
mov eax, dword [ebp - 4]
jmp 0x402459
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x40243b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4023eb
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x46a1e8]
mov dword [ecx], edx
mov eax, dword [ebp - 8]
mov dword [0x46a1e8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x402c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.00402d50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x402d3c
cmp dword [ebp - 4], 0x50000000
jb 0x402cbc
cmp dword [ebp - 4], 0x80000000
ja 0x402cbc
mov dword [ebp - 4], 0x80010000
jmp 0x402c95
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004187d0
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 0x402ce2
jmp 0x402d3c
cmp dword [ebp - 0x10], 0x10000
jne 0x402d25
cmp dword [ebp - 0x14], 0x10000
jb 0x402d25
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 0x402d18
mov eax, dword [ebp - 0x24]
jmp 0x402d3e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402d37
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.00402d50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x402c95
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402d80
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.00402e50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x402e44
cmp dword [ebp - 4], 0x50000000
jb 0x402dc1
cmp dword [ebp - 4], 0x80000000
ja 0x402dc1
mov dword [ebp - 4], 0x4fff0000
jmp 0x402d9a
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.004187d0
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 0x402de7
jmp 0x402e44
cmp dword [ebp - 0x10], 0x10000
jne 0x402e2a
cmp dword [ebp - 0x14], 0x10000
jb 0x402e2a
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 0x402e1d
mov eax, dword [ebp - 0x24]
jmp 0x402e46
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x402e3f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.00402e50
add esp, 4
mov dword [ebp - 4], eax
jmp 0x402d9a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402e80
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 [0x46a1dc], eax
je 0x402ea5
mov eax, 0x10dd
jmp 0x40303d
cmp dword [0x46a1e0], 0
je 0x402eb8
mov eax, dword [0x46a1e0]
jmp 0x40303d
cmp dword [ebp + 8], 0
jne 0x402ec8
mov eax, 6
jmp 0x40303d
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x402ef1
mov dword [ebp - 0xc], 6
mov ecx, dword [ebp - 0xc]
mov dword [0x46a1e0], ecx
mov edx, dword [ebp + 8]
mov dword [0x46a1e4], edx
mov eax, dword [ebp - 0xc]
jmp 0x40303d
push 0x18
call fcn.004172d1
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402f4a
mov dword [ebp - 0xc], 8
mov ecx, dword [ebp - 0xc]
mov dword [0x46a1e0], ecx
cmp dword [ebp - 0x18], 0
je 0x402f39
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.00416d7c
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x46a1e4], ecx
mov eax, dword [ebp - 0xc]
jmp 0x40303d
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00401900
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401900
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 0x402f8a
cmp dword [ebp - 8], 0x1e
jbe 0x402fa6
mov dword [ebp - 0xc], 9
cmp dword [0x46a1d4], 0
je 0x402fa1
jmp 0x402f1a
jmp 0x402f11
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x402fcd
mov dword [ebp - 0xc], 9
cmp dword [0x46a1d4], 0
je 0x402fc8
jmp 0x402f1a
jmp 0x402f11
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 0x402ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
jmp 0x402f11
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 [0x46a1ec]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x46a1ec], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x403420
Capabilities:
Encrypt data using rc4 prga
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4604b8
push 0x418ab0
mov eax, dword fs:[0]
push eax
add esp, 0xffffff8c
mov eax, dword [0x46800c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x3c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
cmp dword [ebp + 0xc], 0
jne 0x403465
mov dword [ebp - 0x1c], 0x10000
jmp 0x403470
mov eax, dword [ebp + 0xc]
add eax, 0x10000
mov dword [ebp - 0x1c], eax
push 0x1c
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004187d0
add esp, 0xc
jmp 0x40348b
mov edx, dword [ebp - 0x38]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
jne 0x4034a8
jmp 0x4035c7
mov eax, dword [ebp - 0x2c]
and eax, 0xfff
cmp eax, 0xfff
jne 0x4034bc
jmp 0x4035c7
mov ecx, dword [ebp - 0x38]
add ecx, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x1c]
jae 0x4034cc
jmp 0x4035c7
cmp dword [ebp - 0x28], 0x1000
jne 0x4034ed
mov edx, dword [ebp - 0x24]
and edx, 0xff
cmp edx, 1
je 0x4034ed
mov eax, dword [ebp - 0x24]
and eax, 0x100
je 0x4034ef
jmp 0x403482
mov dword [ebp - 4], 0
push 0
push 0x40
lea ecx, [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40351c
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
movzx ecx, word [ebp - 0x80]
cmp ecx, 0x5a4d
jne 0x403536
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x2c]
ja 0x403536
cmp dword [ebp - 0x44], 0x40
jae 0x403542
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
push 0
push 0xf8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
jne 0x40356e
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x403585
mov dword [ebp - 4], 0xfffffffe
jmp 0x403482
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x84]
jmp 0x4035c9
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.00416d81
mov esp, ebp
pop ebp
ret 0xc