joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4243b6
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
push ebx
push esi
push edi
push ecx
lea eax, [esp + 0x26c]
push eax
mov eax, 0x409a60
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.00424512
test al, al
je 0x424509
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x424509
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
cmp dword [ebp + 0x18], esi
je 0x42442d
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4244ff
lea eax, [esp + 0x44]
call fcn.00424117
test al, al
jne 0x4244e8
mov eax, dword [esp + 0x18]
and eax, 0x10
je 0x42444c
test bl, 2
jne 0x424455
cmp eax, esi
jne 0x424495
test bl, 4
je 0x424495
cmp dword [ebp + 8], esi
jbe 0x424495
mov eax, dword [esp + 0x14]
push dword [eax + esi*4]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x424478
inc esi
cmp esi, dword [ebp + 8]
jb 0x42445a
jmp 0x424495
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
call dword [ebp + 0x10]
test al, al
je 0x4244ff
cmp dword [ebp + 0x20], 0
je 0x424495
push dword [ebp + 0x20]
call edi
test byte [esp + 0x18], 0x10
je 0x4244e8
test bl, 1
je 0x4244e8
push dword [esp + 0x10]
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x4c]
call fcn.00424512
test al, al
je 0x4244e8
cmp dword [ebp + 0x1c], 0
je 0x4244c5
push dword [ebp + 0x1c]
call edi
push dword [ebp + 0x20]
mov edx, dword [esp + 0x18]
push dword [ebp + 0x1c]
lea ecx, [esp + 0x270]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call fcn.004243b6
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x424411
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x42487c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
test byte [ebp + 0xc], 1
mov eax, dword [ebp + 8]
mov edx, dword [eax]
push ebx
push esi
push edi
mov dword [ebp - 4], edx
je 0x424925
xor eax, eax
call fcn.00424749
mov esi, eax
test esi, esi
je 0x424925
mov ebx, 0xfff0ffff
mov edi, 0x70000000
cmp dword [esi], 0
jbe 0x424915
mov eax, dword [esi + 4]
test eax, 0xc0000
je 0x4248c5
and dword [esi], 0
jmp 0x424915
and eax, ebx
mov dword [esi + 4], eax
and eax, edi
mov dword [ebp + 0xc], eax
mov eax, esi
jmp 0x4248ef
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x4248ef
mov ecx, dword [eax + 4]
and ecx, edi
cmp ecx, dword [ebp + 0xc]
jne 0x4248ef
test dword [eax + 4], 0xe0000
jne 0x4248fd
and dword [eax], 0
mov edx, dword [ebp - 4]
call fcn.00424749
test eax, eax
jne 0x4248d3
jmp 0x424915
and dword [esi], 0
mov ecx, dword [eax + 4]
test ecx, 0x80000
je 0x424910
and dword [eax], 0
jmp 0x424915
and ecx, ebx
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00424749
mov esi, eax
test esi, esi
jne 0x4248b1
call fcn.0042456e
mov esi, eax
mov dword [ebp + 0xc], esi
test esi, esi
je 0x424a13
xor eax, eax
jmp 0x424996
cmp dword [edi], 0
jbe 0x424994
mov ebx, dword [edi + 8]
mov ecx, dword [esi + 0x14]
add ebx, 0x10
add ecx, ebx
lea esi, [ebp + 0xc]
call fcn.0041e78c
mov esi, dword [ebp + 0xc]
test al, al
je 0x424a0d
mov eax, dword [esi + 0x14]
mov ecx, dword [edi]
add eax, esi
mov dword [eax], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x42498e
push ecx
lea ecx, [edi + 0x10]
push ecx
add eax, 0x10
push eax
call fcn.0041e83d
inc dword [esi + 0x1c]
add dword [esi + 0x14], ebx
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00424749
mov edi, eax
test edi, edi
jne 0x42493b
mov eax, dword [esi + 0x14]
sub eax, 0x30
push eax
lea eax, [esi + 0x30]
push eax
lea eax, [esi + 0x20]
push eax
call fcn.0041fab4
test al, al
je 0x424a0d
push edi
push 0x14
push esi
call fcn.0041fdec
cmp dword [ebp + 0x10], 0
mov edi, dword [esi + 0x14]
je 0x4249fc
xor eax, eax
inc eax
cmp edi, eax
jbe 0x4249e1
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
inc eax
cmp eax, edi
jb 0x4249d5
push 0x102
push dword [ebp + 0x10]
lea eax, [ebp - 0x108]
push eax
call fcn.0041e83d
push edi
push esi
call fcn.0041fc8b
push dword [ebp - 4]
call fcn.0041e801
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, edi
jmp 0x424a15
push esi
call fcn.0041e801
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x424a1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
mov esi, eax
lea eax, [edi - 0x30]
cmp eax, 0x9fffd0
ja 0x424a7b
cmp dword [ebp + 8], 0
je 0x424a68
push 0x102
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
call fcn.0041e83d
push edi
push esi
call fcn.0041fc8b
test edi, edi
je 0x424a68
lea eax, [edi - 1]
test eax, eax
je 0x424a68
mov cl, byte [eax + esi - 1]
xor byte [eax + esi], cl
dec eax
jne 0x424a5e
cmp dword [esi + 0x14], edi
ja 0x424a7b
call fcn.0042453f
test al, al
je 0x424a7b
mov eax, dword [esi + 0x14]
jmp 0x424a7d
xor eax, eax
pop esi
leave
ret 4
Function at 0x424af6
Capabilities:
Clear file content
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
xor edi, edi
push edi
push 0x80
push 4
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x424d09
push eax
call fcn.00423fc1
mov ecx, eax
and ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp ecx, 0xffffffff
je 0x424c1b
or eax, edx
je 0x424cf3
push edi
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x424beb
jmp 0x424b6e
xor edi, edi
cmp dword [ebp - 8], edi
je 0x424cf3
cmp dword [ebp - 8], 5
jne 0x424c2b
mov eax, dword [ebp - 0x10]
xor eax, dword [esi + 0x10]
xor ecx, ecx
mov ebx, eax
add ebx, dword [ebp - 0x20]
mov edi, ecx
adc edi, dword [ebp - 0x1c]
add ebx, 5
adc edi, ecx
mov dword [ebp - 0x10], eax
cmp edi, dword [ebp - 0x14]
ja 0x424c99
jb 0x424baf
cmp ebx, dword [ebp - 0x18]
ja 0x424c99
cmp eax, 0xa00000
ja 0x424c99
push 1
push ecx
push eax
push dword [esi]
call fcn.00423f71
test al, al
je 0x424c62
push 0
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x424b6c
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00423f91
push edx
push eax
push dword [ebp + 8]
push 0x409a68
push 2
push 0x1ae
push 0x409ad0
push 0x409b20
call fcn.00420542
add esp, 0x28
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x424d09
push dword [ebp - 8]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push dword [esi]
call fcn.00423f91
pop ecx
push edx
push eax
push dword [ebp + 8]
push 0x409b40
push 2
push 0x1bf
push 0x409ad0
push 0x409b20
call fcn.00420542
add esp, 0x2c
jmp 0x424ccd
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push dword [esi]
call fcn.00423f91
pop ecx
push edx
push eax
push dword [ebp + 8]
push 0x409c50
push 2
push 0x1d7
push 0x409ad0
push 0x409b20
call fcn.00420542
add esp, 0x2c
jmp 0x424c1b
push edi
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00423f91
push edx
push eax
push dword [ebp + 8]
push 0x409bc8
push 2
push 0x1cd
push 0x409ad0
push 0x409b20
call fcn.00420542
add esp, 0x30
xor edi, edi
push edi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.00423f71
test al, al
je 0x424c1b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x424c1b
or dword [esi + 8], 0xffffffff
or dword [esi + 0xc], 0xffffffff
push edi
push edi
push edi
push dword [esi]
mov byte [ebp - 1], 1
call fcn.00423f71
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x424d30
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], 0xa00000
push edi
mov byte [ebp - 1], bl
ja 0x424e0a
push dword [esi]
call fcn.00423f91
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x424e0a
push 2
push ebx
push ebx
push dword [esi]
call fcn.00423f71
test al, al
je 0x424e0a
push dword [esi]
call fcn.00423f91
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x424df4
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0041e8b4
mov eax, dword [esi + 0x10]
xor eax, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call edi
test eax, eax
je 0x424dde
cmp dword [ebp - 8], 5
jne 0x424dde
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call edi
test eax, eax
je 0x424dde
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 8], eax
jne 0x424dde
mov byte [ebp - 1], 1
jmp 0x424df4
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.00423f71
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.00423f71
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 8
Function at 0x424e13
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push edi
push dword [esi]
call fcn.00423f91
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
xor ebx, ebx
jmp 0x424e73
cmp dword [ebp - 4], ebx
je 0x424ea6
cmp dword [ebp - 4], 5
jne 0x424eb2
mov eax, dword [ebp - 0xc]
xor eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
cmp eax, 0xa00000
ja 0x424ecc
test byte [ebp - 8], 1
jne 0x424e59
cmp eax, ebx
jne 0x424ee6
push 1
push ebx
push eax
push dword [esi]
call fcn.00423f71
push dword [esi]
test al, al
je 0x424f6a
call fcn.00423f91
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push dword [esi]
mov dword [ebp - 0x14], edx
call edi
test eax, eax
jne 0x424e2c
push dword [esi]
call fcn.00423f91
push edx
push eax
push 0x409cf8
push 2
push 0x237
jmp 0x424f7d
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
mov al, 1
jmp 0x424f91
push dword [esi]
call fcn.00423f91
push edx
push eax
push 0x409d68
push 2
push 0x248
jmp 0x424f7d
push dword [esi]
call fcn.00423f91
push edx
push eax
push 0x409db0
push 2
push 0x252
jmp 0x424f7d
call fcn.0041e7d1
mov ebx, eax
test ebx, ebx
je 0x424f8f
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push ebx
push dword [esi]
call edi
test eax, eax
je 0x424f3b
mov edi, dword [ebp - 0xc]
cmp dword [ebp - 4], edi
jne 0x424f3b
push dword [ebp + 0x10]
mov eax, ebx
call fcn.00424a1c
mov dword [ebp - 4], eax
test eax, eax
je 0x424f3b
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
jmp 0x424eab
push dword [esi]
call fcn.00423f91
push edx
push eax
push 0x409e40
push 2
push 0x26c
push 0x409ad0
push 0x409d3c
call fcn.00420542
add esp, 0x1c
push ebx
call fcn.0041e801
jmp 0x424f8f
call fcn.00423f91
push edx
push eax
push 0x409df8
push 2
push 0x25d
push 0x409ad0
push 0x409d3c
call fcn.00420542
add esp, 0x1c
xor al, al
pop edi
pop ebx
leave
ret 0xc
Function at 0x424f97
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x425056
push dword [esi]
call fcn.00423f91
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x425056
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00423f71
test al, al
je 0x425056
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425046
cmp dword [esp + 0xc], 5
jne 0x425046
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.00423f71
test al, al
je 0x425046
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425046
cmp dword [esp + 0xc], 5
jne 0x425046
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.00423f71
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425236
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp + 8]
push edi
call esi
test eax, eax
je 0x425280
xor eax, eax
xor cl, cl
cmp dword [ebp + 8], eax
jbe 0x425273
movzx edx, cl
mov dl, byte [ebp + edx + 0xc]
xor byte [eax + edi], dl
inc cl
cmp cl, 4
jne 0x42526d
xor cl, cl
inc eax
cmp eax, dword [ebp + 8]
jb 0x42525a
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call esi
pop esi
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x13076165
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
mov ecx, 0x74d4611e
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3cab27af
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1ee57e70
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x35b16aa4
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x432060
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
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
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x138819f9
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x17d27f97
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x2399084a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x100021af
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10077274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10002287
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x10002278
cmp dword [ebp - 0x20], 0x10
jb 0x10002266
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x10002266
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10002266
mov edx, dword [esi]
test edx, edx
jne 0x10002234
push 0x200
push edx
push dword [0x10079b54]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10002280
jmp 0x1000225a
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000225a
shl eax, 3
push eax
push edx
push 0
push dword [0x10079b54]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10002280
shl dword [esi + 4], 1
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100021ef
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1003be5b
leave
ret

Function at 0x10002295
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
xor ebx, ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.100021af
cmp dword [esi], ebx
je 0x100022f5
push edi
mov edi, ebx
cmp dword [esi + 8], ebx
jbe 0x100022f4
mov eax, dword [esi]
push dword [eax + edi*4]
push ebx
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100022eb
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.1000205a
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
push 0
pop ebx
cmp edi, dword [esi + 8]
jb 0x100022bb
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100022f9
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x10002347
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x10002337
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000232e
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000230b
mov eax, dword [esi]
pop ebx
push eax
push 0
push dword [0x10079b54]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
ret
Function at 0x10002349
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
imul esi, ecx, 0x2c
push edi
mov edi, edx
mov dword [ebp - 0x10], edi
add esi, dword [0x10079b70]
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
mov ebx, dword [esi]
and al, 1
je 0x1000236f
sub ebx, 5
movzx eax, al
lea ecx, [ebp - 4]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push ebx
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002393
push 0xa
pop eax
jmp 0x10002412
test edi, edi
je 0x100023b4
mov byte [ebx], 0xe9
mov eax, dword [esi + 4]
sub eax, ebx
sub eax, 5
mov dword [ebx + 1], eax
test byte [esi + 0x14], 1
je 0x100023d3
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100023d3
test byte [esi + 0x14], 1
je 0x100023c8
lea esi, [esi + 0xc]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 8]
jmp 0x100023d3
mov eax, dword [esi + 0xc]
mov dword [ebx], eax
mov al, byte [esi + 0x10]
mov byte [ebx + 4], al
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [ebp - 0x10]
mov al, byte [esi + 0x14]
and dl, 1
mov cl, dl
and al, 0xfd
add cl, cl
shl dl, 2
or cl, al
and cl, 0xfb
or cl, dl
xor eax, eax
mov byte [esi + 0x14], cl
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10002a95
Capabilities:
Allocate or change rwx memory

Disassembly:
mov edx, dword [0x10079b68]
push esi
xor esi, esi
jmp 0x10002aa7
cmp dword [edx + 4], esi
jne 0x10002af3
mov edx, dword [edx]
test edx, edx
jne 0x10002aa0
push 0x40
push 0x3000
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x10002b04
push 0x20
mov dword [edx + 4], esi
lea ecx, [edx + 0x20]
mov dword [edx + 8], esi
pop esi
mov eax, dword [edx + 4]
add esi, 0x20
mov dword [ecx], eax
mov dword [edx + 4], ecx
add ecx, 0x20
cmp esi, 0xfe0
jbe 0x10002ad0
mov eax, dword [0x10079b68]
mov dword [edx], eax
mov dword [0x10079b68], edx
test edx, edx
je 0x10002b04
mov eax, dword [edx + 4]
pop esi
mov ecx, dword [eax]
inc dword [edx + 8]
mov dword [edx + 4], ecx
ret
xor eax, eax
pop esi
ret