joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e9f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5a9008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 1
xor ecx, ecx
mov dword [ebp - 0x28], edi
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [ebp - 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 0x19
and al, 1
mov byte [edi], al
mov eax, dword [ebp + 0x10]
sub eax, 0x80
je 0x4e9f86
sub eax, 0x40
je 0x4e9f78
sub eax, 0x40
je 0x4e9f6a
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4e9fb4
jmp 0x4e9f92
mov ebx, 0x20
mov dword [edi + 4], 0xe
jmp 0x4e9f92
mov ebx, 0x18
mov dword [edi + 4], 0xc
jmp 0x4e9f92
mov ebx, 0x10
mov dword [edi + 4], 0xa
mov edi, dword [ebp + 0xc]
xor esi, esi
mov eax, esi
lea ecx, [ebp - 0x24]
and eax, 3
mov edx, esi
add ecx, eax
shr edx, 2
mov al, byte [esi + edi]
inc esi
mov byte [ecx + edx*4], al
cmp esi, ebx
jb 0x4e9f97
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x4e9fc4
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
jmp 0x4e9fd3
xor ecx, ecx
mov al, byte [ecx + edx]
mov byte [edi + ecx + 8], al
inc ecx
cmp ecx, 0x10
jl 0x4e9fc6
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
call fcn.004ea600
cmp byte [ebp + 8], 0
jne 0x4ea100
cmp dword [edi + 4], 1
mov dword [ebp - 0x2c], 1
jle 0x4ea100
lea eax, [edi + 0x28]
mov dword [ebp - 0x28], eax
lea esi, [edi + 0x2c]
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movzx ecx, byte [esi - 1]
movzx edx, byte [esi - 2]
movzx ebx, byte [eax + ecx*4 + 0x5afb80]
xor bl, byte [eax + edx*4 + 0x5b19a0]
movzx ecx, byte [esi - 3]
movzx edx, byte [esi + 2]
xor bl, byte [eax + ecx*4 + 0x5b0880]
movzx ecx, byte [esi - 4]
xor bl, byte [eax + ecx*4 + 0x5af780]
movzx ecx, byte [esi + 3]
mov byte [ebp + eax - 0x14], bl
movzx ebx, byte [eax + ecx*4 + 0x5afb80]
xor bl, byte [eax + edx*4 + 0x5b19a0]
movzx ecx, byte [esi + 1]
movzx edx, byte [esi + 6]
xor bl, byte [eax + ecx*4 + 0x5b0880]
movzx ecx, byte [esi]
xor bl, byte [eax + ecx*4 + 0x5af780]
movzx ecx, byte [esi + 7]
mov byte [ebp + eax - 0x10], bl
movzx ebx, byte [eax + ecx*4 + 0x5afb80]
xor bl, byte [eax + edx*4 + 0x5b19a0]
movzx ecx, byte [esi + 5]
movzx edx, byte [esi + 0xa]
xor bl, byte [eax + ecx*4 + 0x5b0880]
movzx ecx, byte [esi + 4]
xor bl, byte [eax + ecx*4 + 0x5af780]
movzx ecx, byte [esi + 0xb]
mov byte [ebp + eax - 0xc], bl
movzx ebx, byte [eax + ecx*4 + 0x5afb80]
movzx ecx, byte [esi + 9]
xor bl, byte [eax + edx*4 + 0x5b19a0]
xor bl, byte [eax + ecx*4 + 0x5b0880]
movzx ecx, byte [esi + 8]
xor bl, byte [eax + ecx*4 + 0x5af780]
mov byte [ebp + eax - 8], bl
inc eax
cmp eax, 4
jl 0x4ea010
mov edx, dword [ebp - 0x28]
add esi, 0x10
movups xmm0, xmmword [ebp - 0x14]
mov ecx, dword [ebp - 0x2c]
inc ecx
movups xmmword [edx], xmm0
add edx, 0x10
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
cmp ecx, dword [edi + 4]
jl 0x4ea002
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ef615
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4eb580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559d5b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [edi], 0
call int.00416650
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 1
push 0x88
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ef5e0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov byte [edi + 0x44], 1
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4eb640
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559d5b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [edi], 0
call int.00416650
mov dword [ebp - 4], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 1
push 0x88
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ef5e0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov al, byte [ebp + 0xc]
mov byte [edi + 0x44], al
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4eb700
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559da3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 1
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 2
push 0x88
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
call fcn.004ef5e0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 3
push dword [ebp + 8]
call fcn.00438900
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4eb7e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559ddb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 2
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
push dword [ebp + 8]
lea ecx, [edi + 0x30]
mov dword [ebp - 4], 1
call fcn.00438640
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 2
push 0x88
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ef5e0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4eb8a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559ddb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 4
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
movsd xmm0, qword [ebp + 8]
movsd qword [edi + 0x28], xmm0
mov dword [ebp - 4], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 2
push 0x88
mov dword [ebp + 0xc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ef5e0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4eb980
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x559ddb
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5a9008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 3
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0xf
mov byte [edi + 4], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ecx
mov dword [ebp - 4], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea esi, [edi + 0x3c]
mov byte [ebp - 4], 2
push 0x88
mov dword [ebp + 0xc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ef5e0
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x58], 0
mov eax, edi
mov dword [edi + 0x5c], 0xf
mov byte [edi + 0x48], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4efaa4
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x5a5650
call fcn.004f05a0
push 1
call fcn.004efb29
pop ecx
test al, al
je 0x4efa8e
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004efaf7
mov byte [ebp - 0x24], al
mov eax, dword [0x5ac4d8]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4efa8e
test eax, eax
jne 0x4ef9ac
mov dword [0x5ac4d8], ecx
push 0x55c648
push 0x55c620
call fcn.004fe5af
pop ecx
pop ecx
test eax, eax
je 0x4ef98f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4efa7e
push 0x55c61c
push 0x55c548
call fcn.004fe56a
pop ecx
pop ecx
mov dword [0x5ac4d8], 2
jmp 0x4ef9b1
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004efc7d
pop ecx
call fcn.004f052f
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4ef9e2
push esi
call fcn.004efbe9
pop ecx
test al, al
je 0x4ef9e2
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x55c544]
call esi
call fcn.004f0535
mov esi, eax
cmp dword [esi], edi
je 0x4efa00
push esi
call fcn.004efbe9
pop ecx
test al, al
je 0x4efa00
push dword [esi]
call fcn.004fe853
pop ecx
call fcn.004fe551
mov edi, eax
call fcn.004fe8eb
mov esi, dword [eax]
call fcn.004fe8e5
push edi
push esi
push dword [eax]
call main
add esp, 0xc
mov esi, eax
call fcn.004f0384
test al, al
je 0x4efa95
test bl, bl
jne 0x4efa33
call fcn.004fe82e
push 0
push 1
call fcn.004efc9a
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4efa7e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004f0264
push esi
call fcn.004fe879
push dword [ebp - 0x20]
call fcn.004fe83d
int3
call fcn.004f047e
jmp 0x4ef922

Function at 0x51aa90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
xor eax, eax
mov cl, byte [edx]
test cl, cl
je 0x51aabb
nop
movsx ecx, cl
lea edx, [edx + 1]
add ecx, eax
imul eax, ecx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x51aaa0
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
pop ebp
ret

Function at 0x52347e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005232f4

Function at 0x526d40
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push 0xb8
push 1
call fcn.004fca40
mov esi, eax
add esp, 8
test esi, esi
jne 0x526d64
lea eax, [esi + 0xc]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 0x7e
mov dword [esi + 0x20], 2
mov dword [esi + 0x24], 2
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esi + 0x28], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x526dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push esi
push edi
movlpd qword [ebp - 0x18], xmm0
mov esi, dword [ebx + 0x10]
push esi
push 2
movlpd qword [ebp - 0xc], xmm0
call fcn.004fca40
mov edi, eax
add esp, 8
test edi, edi
jne 0x526df7
lea eax, [edi + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, 8
mov word [edi + 6], cx
mov dword [edi], 0
movups xmm0, xmmword [eax]
movups xmmword [edi + 0xc], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x1c], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x2c], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [edi + 0x3c], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [edi + 0x4c], xmm0
mov word [edi + esi + 6], cx
lea ecx, [ebp - 0x18]
mov dword [edi + esi], 1
movups xmm0, xmmword [eax]
push ecx
lea ecx, [ebp - 4]
movups xmmword [edi + esi + 0xc], xmm0
push ecx
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + esi + 0x1c], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + esi + 0x2c], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [edi + esi + 0x3c], xmm0
movups xmm0, xmmword [eax + 0x40]
lea eax, [esi + esi]
push eax
movups xmmword [edi + esi + 0x4c], xmm0
push edi
push dword [ebx]
mov dword [ebp - 0x10], 0
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x526ea5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call fcn.004f5d5f
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp dword [ebp - 4], eax
mov esi, 0x1c
push edi
cmove esi, ecx
call fcn.004f5d5f
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x526ed0
Capabilities:
Map section object

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0
push edi
mov edx, dword [esi + 0xc]
mov eax, edx
and eax, 0x80000
setne bl
xor ecx, ecx
test eax, 0x80000
setne cl
lea ebx, [ebx*2 + 2]
lea ecx, [ecx*2 + 4]
and edx, 0x20000
je 0x526f12
xor eax, eax
jmp 0x526f15
mov eax, dword [esi + 0x4c]
push dword [esi]
xor edi, edi
mov dword [ebp - 8], eax
test edx, edx
mov dword [ebp + 8], 0x2000
push 0x4000000
cmove edi, dword [ebp + 8]
xor eax, eax
test edx, edx
sete al
lea eax, [eax*2 + 2]
push eax
push 0
push 0
push ecx
lea eax, [ebp + 8]
push eax
call sub.ntdll.dll_NtCreateSection
test eax, eax
je 0x526f7e
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x20]
movlpd qword [ebp - 0x14], xmm0
push eax
push 0
movlpd qword [ebp - 0x1c], xmm0
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 2
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
push dword [ebp + 8]
call sub.ntdll.dll_NtMapViewOfSection
push dword [ebp + 8]
mov edi, eax
call sub.ntdll.dll_NtClose
test edi, edi
je 0x526fb8
mov dword [ebp - 0x20], edi
jmp 0x526f52
mov eax, dword [ebp - 4]
mov dword [esi + 0x30], eax
pop edi
lea ecx, [eax + 0xc]
mov eax, dword [esi + 0x10]
add eax, ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x3c], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x529d40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea esi, [ebx + 1]
mov eax, dword [edi + 0x10]
mov edi, dword [edi + 0x24]
mov dword [ebp - 0xc], eax
test dword [eax + 0xc], 0x80000
mov ecx, dword [eax + 0x10]
mov edx, dword [edi]
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
je 0x529dbe
cmp esi, edx
jg 0x529daa
mov ecx, dword [edi + esi*8 + 4]
movzx eax, word [ecx + 6]
test eax, 0xc000
je 0x529d9c
and eax, 0x7fff
inc ebx
mov word [ecx + 6], ax
mov eax, dword [edi + esi*8]
mov ecx, dword [edi + esi*8 + 4]
mov dword [edi + ebx*8], eax
mov dword [edi + ebx*8 + 4], ecx
jmp 0x529da5
and eax, 0xffef
mov word [ecx + 6], ax
inc esi
cmp esi, edx
jle 0x529d73
mov eax, dword [ebp + 8]
sub esi, ebx
dec esi
add dword [eax + 0x44], esi
xor eax, eax
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov dword [ebp - 8], esi
cmp ecx, edx
jg 0x529daa
nop word [eax + eax]
mov edx, dword [edi + ecx*8 + 4]
lea ebx, [edi + ecx*8]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
movzx eax, word [edx + 6]
test eax, 0xc000
je 0x529dfc
and eax, 0x7fff
mov word [edx + 6], ax
lea eax, [edi + ecx*8]
mov dword [eax], 0
jmp 0x529e54
mov ecx, dword [ebp - 0x14]
and eax, 0xffef
mov ecx, dword [ecx]
imul ecx, dword [ebp - 4]
mov word [edx + 6], ax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 4]
test al, 4
je 0x529e1f
mov ecx, dword [edx + 8]
imul ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x20], eax
sar eax, 0x1f
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0xc]
push 0
push ecx
push edx
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x529ebb
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
cmp ecx, dword [ebp - 0x10]
jle 0x529dd0
cmp dword [edi + esi*8], 0
mov edx, dword [edi + esi*8 + 4]
jne 0x529e7f
mov eax, dword [edi + esi*8]
inc ebx
mov ecx, edx
mov dword [edi + ebx*8], eax
mov dword [edi + ebx*8 + 4], ecx
mov eax, dword [edx]
mov dword [edi + ebx*8], eax
jmp 0x529ea1
test byte [edx + 6], 4
je 0x529e96
cmp dword [edx + 8], 1
je 0x529e96
push edx
call fcn.004f5d5f
add esp, 4
jmp 0x529ea1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x74]
mov dword [edx], eax
mov dword [ecx + 0x74], edx
inc esi
cmp esi, dword [ebp - 0x10]
jle 0x529e61
mov eax, dword [ebp + 8]
sub esi, ebx
dec esi
add dword [eax + 0x44], esi
xor eax, eax
mov dword [edi], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6cf736cd
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xaa257c6
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x403a8a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4093c8
cmp edx, dword [eax]
je 0x403aac
add eax, 8
inc ecx
cmp eax, 0x409458
jl 0x403a9d
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4093c8]
jne 0x403bda
mov eax, dword [0x409c68]
cmp eax, 1
je 0x403bb4
test eax, eax
jne 0x403add
cmp dword [0x407214], 1
je 0x403bb4
cmp edx, 0xfc
je 0x403bda
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403b14
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404700
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004047f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x403b57
lea eax, [ebp - 0x1a4]
push eax
call fcn.004047f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x406488
push edi
call fcn.00404d70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404700
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404710
lea eax, [ebp - 0xa0]
push 0x406468
push eax
call fcn.00404710
push dword [esi + 0x4093cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404710
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00404ce2
add esp, 0x2c
pop edi
jmp 0x403bda
lea eax, [ebp + 8]
lea esi, [esi + 0x4093cc]
push 0
push eax
push dword [esi]
call fcn.004047f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40a3c0
Capabilities:
Terminate process

Disassembly:
add byte [eax - 0x6f416f70], dl
nop
nop
sub esi, dword [ebx]
xor eax, eax
add al, 0
xlatb
xor eax, eax
add al, 0
xlatb
nop
nop
nop
nop
nop
nop
nop
std
nop
nop
push ebp
in al, dx
mov esp, ebx
or byte [ebx - 0x3f7aebd7], cl
je 0x40a410
mov ecx, dword [ebp + 0xc]
push ecx
in al, dx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a40a
push esi
mov esp, dword [edx + sym.imp.KERNEL32.dll_GetLastError]
call esi
jbe 0x40a3b7
jne 0x40a3fe
pop esi
movsd dword es:[edi], dword es:[esi]
int1
add byte [ebx - 0x2a], ah
arpl si, dx
add eax, 0xa7c57
pop esi
push ebx
mov ebp, 0xc0dd01bd
ffree st(0)
pop ebp
ret 8
mov eax, 0xe64e3b
pop ebp
ret 8