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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c3aed
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x100f0364]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
xor edx, edx
mov edi, 0xf
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edi
mov byte [ebp - 0x28], dl
mov dword [ebp - 4], edx
mov esi, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], eax
cmp esi, eax
je 0x10082dc0
nop
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x10082d43
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x10082d31
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.1000e3c0
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
lea ecx, [edx - 3]
cmp ecx, edx
ja 0x10082d5d
cmp edi, 0x10
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov byte [eax + ecx], 0
jmp 0x10082d69
push ecx
sub ecx, edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.1001d040
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov edi, 0x811c9dc5
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
test edx, edx
je 0x10082d98
mov esi, eax
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, edx
jb 0x10082d84
mov esi, dword [ebp - 0x30]
cmp edi, dword [ebp + 8]
jne 0x10082da8
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10082dbb
dec eax
mov dword [ebp - 0x2c], eax
add esi, 0x1c
mov dword [ebp - 0x30], esi
cmp esi, dword [ebp - 0x38]
je 0x10082dc0
mov edi, dword [ebp - 0x14]
jmp 0x10082d20
mov esi, dword [esi + 0x18]
jmp 0x10082dc2
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10082dfa
mov edx, dword [ebp - 0x28]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x10082df0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10082df0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100c0328
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100bfdfa
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100866c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x100866ec
push 0
push 0
push dword [ebp + 8]
push 0x100171d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x100866ec
mov eax, 1
pop ebp
ret 0xc
xor eax, eax
pop ebp
ret 0xc
Function at 0x100bdd40
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
lea edi, [ebp - 0x30]
mov ecx, 0xc
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x100f0364]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x100bdebc
mov dword [ebp - 0x28], 0x1c
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x100bdea9
cmp dword [ebp - 0x28], 0x10
jb 0x100bde8d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, esp
call fcn.100c099c
cmp dword [ebp - 0x1c], eax
jne 0x100bde8d
mov esi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp esi, esp
call fcn.100c099c
cmp dword [ebp - 0x20], eax
je 0x100bde8d
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x100bde14
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0x80
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shl edx, 2
mov esi, esp
push edx
push 0
mov eax, dword [0x10135794]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.100c099c
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x100bde12
jmp 0x100bdea9
jmp 0x100bde6d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
cmp edx, dword [ecx + 4]
jb 0x100bde6d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
shl ecx, 1
shl ecx, 2
mov esi, esp
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x10135794]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp esi, esp
call fcn.100c099c
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x100bde57
jmp 0x100bdea9
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x20]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 8], edx
mov dword [ebp - 0x28], 0x1c
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x100bdd93
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100c099c
push edx
mov ecx, ebp
push eax
lea edx, [0x100bdee8]
call fcn.100c0948
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100bfdfa
add esp, 0x30
cmp ebp, esp
call fcn.100c099c
mov esp, ebp
pop ebp
ret
Function at 0x100bdf00
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0
mov eax, dword [ebp + 8]
push eax
call fcn.100bdd40
add esp, 4
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
je 0x100bdfcb
mov dword [ebp - 4], 0
jmp 0x100bdf5c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
cmp ecx, dword [eax + 8]
jae 0x100bdfcb
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [eax + ecx*4]
push edx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.100c099c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100bdfc9
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp esi, esp
call fcn.100c099c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.100bdb60
add esp, 0xc
mov esi, esp
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100c099c
jmp 0x100bdf53
pop esi
add esp, 8
cmp ebp, esp
call fcn.100c099c
mov esp, ebp
pop ebp
ret

Function at 0x100bdfe0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
je 0x100be08b
mov dword [ebp - 4], 0
jmp 0x100be013
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x100be06e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov esi, esp
mov eax, dword [ebp - 4]
mov ecx, dword [edx + eax*4]
push ecx
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
cmp esi, esp
call fcn.100c099c
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100be06c
mov esi, esp
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp esi, esp
call fcn.100c099c
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.100c099c
jmp 0x100be00a
mov esi, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10135794]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.100c099c
pop esi
add esp, 8
cmp ebp, esp
call fcn.100c099c
mov esp, ebp
pop ebp
ret
Function at 0x100be0a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov eax, 0xcccccccc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x10139c90]
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 5
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x100be103
mov eax, dword [ebp - 0x18]
sub eax, 5
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
mov dword [ebp - 0x14], ecx
mov esi, esp
lea edx, [ebp - 0xc]
push edx
push 0x40
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100c099c
test eax, eax
jne 0x100be12e
mov eax, 0xa
jmp 0x100be230
cmp dword [ebp + 0xc], 0
je 0x100be17a
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov byte [eax], 0xe9
mov ecx, dword [ebp - 0x18]
add ecx, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
sub eax, ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 1], eax
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 1
movzx ecx, al
test ecx, ecx
je 0x100be178
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov byte [ecx], 0xeb
mov edx, dword [ebp - 0x20]
mov byte [edx + 1], 0xf9
jmp 0x100be1b6
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x100be1a1
push 7
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
jmp 0x100be1b6
push 5
mov edx, dword [ebp - 4]
add edx, 0xc
push edx
mov eax, dword [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.100c099c
mov esi, esp
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.100c099c
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.100c099c
mov cl, byte [ebp + 0xc]
and cl, 1
shl cl, 1
mov edx, dword [ebp - 4]
mov al, byte [edx + 0x14]
and al, 0xfd
or al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x14], al
mov dl, byte [ebp + 0xc]
and dl, 1
shl dl, 2
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x14]
and cl, 0xfb
or cl, dl
mov edx, dword [ebp - 4]
mov byte [edx + 0x14], cl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x100be254]
call fcn.100c0948
pop eax
pop edx
pop edi
pop esi
add esp, 0x20
cmp ebp, esp
call fcn.100c099c
mov esp, ebp
pop ebp
ret
Function at 0x100be920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov dword [ebp - 8], 0xcccccccc
mov dword [ebp - 4], 0xcccccccc
mov eax, dword [0x10139c88]
mov dword [ebp - 4], eax
jmp 0x100be947
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100be960
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100be95e
mov eax, dword [ebp - 4]
jmp 0x100be9e4
jmp 0x100be93f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.100c099c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100be9e1
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x100be9a3
mov edx, dword [ebp - 4]
mov eax, dword [0x10139c88]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10139c88], ecx
mov eax, dword [ebp - 4]
pop esi
add esp, 8
cmp ebp, esp
call fcn.100c099c
mov esp, ebp
pop ebp
ret

Function at 0x100beed0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0xcccccccc
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x100bef20
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x100bef20
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x100bef20
xor eax, eax
jmp 0x100bef61
mov dword [ebp - 4], 1
jmp 0x100bef32
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100bef5c
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x100bef5a
xor eax, eax
jmp 0x100bef61
jmp 0x100bef29
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40105b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x250
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [esp], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0
call ebx
push edx
mov dword [ebp - 0x228], eax
call esi
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x21c], 6
push ecx
push ecx
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push esi
push esi
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x220], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push edx
push edx
mov dword [ebp - 0x224], eax
lea eax, [ebp - 0x238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
mov dword [esp], 0
call ebx
lea ebx, [ebp - 0x210]
push edx
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push ecx
push ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a
mov dword [esp], 0
call dword [sym.imp.SHELL32.DLL_SHGetFolderPathW]
sub esp, 0x14
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 5]
push esi
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4012c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 1
call fcn.0040105b
test eax, eax
jne 0x401362
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x402b7c
sub eax, 0x40211a
mov dword [esp], 0x40211a
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401362
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.0040165d
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00401ba8
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c000
mov dword [esp], 0x40300c
call fcn.0040287f
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40892e
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
sub edi, eax
add edi, eax
call fcn.0040895b
xor dword [ecx], ebx
dec edi
add ecx, 1
add eax, eax
cmp ecx, edx
jne fcn.0040892e
inc edi
sub eax, 0x62ac10f8
ret
Function at 0x402be0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x34
mov eax, dword [0x433020]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
xor ecx, ecx
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], 0
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov dword [esp + 0x24], eax
mov ebx, dword [eax + 0x20]
mov eax, dword [eax + 0x18]
add ebx, esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
test eax, eax
je 0x402dc3
nop dword [eax]
mov edx, dword [ebx]
xorps xmm0, xmm0
add edx, esi
mov dword [esp + 0x38], 0
mov eax, edx
mov dword [esp + 0x3c], 0
movups xmmword [esp + 0x28], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c51
sub eax, esi
lea ecx, [esp + 0x28]
push eax
push edx
call fcn.004013f0
mov eax, dword [esp + 0x38]
lea ebp, [esp + 0x28]
mov edx, dword [esp + 0x28]
mov edi, eax
xor edi, 0x235
mov ebx, eax
cmp dword [esp + 0x3c], 0x10
cmovae ebp, edx
shr ebx, 2
xor esi, esi
test ebx, ebx
je 0x402cc9
nop dword [eax]
push ebp
push ebx
push str._x_and__p
call fcn.00403c80
imul ecx, dword [ebp + esi*4], 0x5bd1e995
add esp, 0xc
imul edi, edi, 0x5bd1e995
inc esi
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e995
xor edi, ecx
cmp esi, ebx
jl 0x402c90
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
and eax, 3
xor ecx, ecx
sub eax, 1
je 0x402cef
sub eax, 1
je 0x402ce5
sub eax, 1
jne 0x402cfe
movsx ecx, byte [ebp + ebx*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebp + ebx*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebp + ebx*4]
xor eax, ecx
imul eax, eax, 0x5bd1e995
xor edi, eax
mov eax, edi
shr eax, 0xd
xor eax, edi
imul ecx, eax, 0x5bd1e995
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x4c]
je 0x402d70
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x3c]
add ebx, 4
mov dword [esp + 0x18], ebx
cmp eax, 0x10
jb 0x402d57
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x402d4d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ddc
push ecx
push edx
call fcn.00405e19
add esp, 8
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x10], ecx
cmp ecx, dword [esp + 0x20]
jb 0x402c30
jmp 0x402dc3
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [edi + 0x24]
lea eax, [eax + ecx*2]
movzx ecx, word [eax + esi]
mov eax, dword [edi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + esi]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x3c]
cmp eax, 0x10
jb 0x402dc3
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x402db9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402ddc
push ecx
push edx
call fcn.00405e19
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040607d
add esp, 0x34
ret
call fcn.0040a89f
int3
Function at 0x403b30
Capabilities:
Create thread

Disassembly:
push ecx
mov ecx, dword [0x4a6e08]
mov eax, ecx
sub eax, dword [0x4a6e04]
sar eax, 2
test eax, eax
je 0x403b73
mov dword [esp], 0x40d87ae1
cmp ecx, dword [0x4a6e0c]
je 0x403b64
mov dword [ecx], 0x40d87ae1
add dword [0x4a6e08], 4
jmp 0x403b73
lea eax, [esp]
push eax
push ecx
mov ecx, 0x4a6e04
call fcn.004014c0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push str.This_is_a_firewall_protection
call fcn.00403cb0
add esp, 4
push 0
push 0
push 0
push 0
call dword [sym.imp.GDI32.dll_SetBrushOrgEx]
push 0
push 0
call dword [sym.imp.GDI32.dll_PaintRgn]
push 0
push 0
call dword [sym.imp.GDI32.dll_InvertRgn]
push 8
call fcn.00405de9
mov esi, eax
add esp, 4
test esi, esi
je 0x403bf2
push 4
call fcn.00405de9
add esp, 4
test eax, eax
je 0x403bd0
mov dword [eax], 0x403010
jmp 0x403bd2
xor eax, eax
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401630
push 0
push 0
call fcn.0040e5cc
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x403c58
jmp 0x403bf4
xor esi, esi
push 4
call fcn.00405de9
mov edi, eax
add esp, 4
test edi, edi
je 0x403c30
mov dword [edi], esi
cmp dword [esi + 4], 0
je 0x403c65
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [esi + 4], eax
je 0x403c6c
push 0
push dword [esi + 4]
push dword [esi]
call fcn.00403e9c
add esp, 0xc
test eax, eax
jne 0x403c73
mov dword [esi], eax
mov dword [esi + 4], eax
jmp 0x403c32
xor edi, edi
test esi, esi
je 0x403c47
cmp dword [esi + 4], 0
jne 0x403c7a
push 8
push esi
call fcn.00405e19
add esp, 8
push 4
push edi
call fcn.00405e19
add esp, 8
xor eax, eax
pop edi
pop esi
pop ecx
ret
push 6
mov dword [edi], 0
call fcn.00403fdc
push 1
call fcn.00403fdc
push 5
call fcn.00403fdc
push 2
call fcn.00403fdc
call fcn.0040e434
int3
Function at 0x40559a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4055bb
jl 0x4055b2
test edi, edi
jne 0x4055bb
xor eax, eax
xor edx, edx
jmp 0x40567c
cmp dword [ebx + 0x38], 0
je 0x4055d0
push eax
push edi
push dword [ebp + 8]
call fcn.00405682
jmp 0x40567c
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405617
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x405617
cmp eax, edi
jb 0x4055f1
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00407260
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40561d
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x405671
mov ecx, ebx
call fcn.00404e02
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40565c
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040fa11
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x405671
jmp 0x40562f
test edx, edx
je 0x405671
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040fa11
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40676f
Capabilities:
Parse pe header

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

Function at 0x414df6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42902c
push 0x429024
push str.FlsAlloc
push 0x1e
call fcn.00414c23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414e2a
push dword [ebp + 8]
mov ecx, esi
call dword [0x425158]
call esi
jmp 0x414e30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x414e74
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42903c
push 0x429034
push str.FlsGetValue
push 0x20
call fcn.00414c23
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414eab
push dword [ebp + 8]
mov ecx, esi
call dword [0x425158]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]