joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e4f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 0x10]
sub esp, 0xc
test ecx, ecx
mov eax, 0xfffffff5
je 0x41e50c
cmp dword [esp + 0x14], 2
jne 0x41e50c
mov eax, 0xfffffff4
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
test ebp, ebp
je 0x41e5d7
mov eax, dword [esp + 0x14]
cmp eax, 1
jle 0x41e5d7
push ebx
push esi
push edi
lea edi, [esp + 0x30]
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x10], 0
cmp eax, 0x80000004
jne 0x41e551
mov ebx, dword [edi]
jmp 0x41e568
push edi
call fcn.004213f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41e5be
mov dword [esp + 0x10], 1
push ebx
call dword [0x43d1c0]
mov esi, eax
add esp, 4
test esi, esi
jbe 0x41e5ad
mov edi, ebx
mov eax, 0x400
mov dword [esp + 0x20], 0
cmp esi, eax
jae 0x41e58d
mov eax, esi
lea ecx, [esp + 0x20]
push 0
push ecx
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
sub esi, eax
add edi, eax
test esi, esi
ja 0x41e57a
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41e5be
push ebx
call fcn.0042270b
add esp, 4
mov eax, dword [esp + 0x18]
add edi, 0xc
dec eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jne 0x41e53b
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x41f0b0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.0041e0d0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x41f107
push ebx
push edi
call fcn.0041e1e0
push esi
mov ebx, esi
call fcn.0041e0d0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x41f0de
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x420ea0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, edx
push esi
push edi
mov esi, ebp
xor edi, edi
and esi, 3
mov eax, ecx
jle 0x420ec1
mov dl, byte [eax]
inc eax
cmp dl, bl
je 0x420f1b
inc edi
cmp edi, esi
jl 0x420eb5
mov edi, ebx
and edi, 0xff
mov esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
shl esi, 8
or esi, edi
lea edi, [ecx + ebp]
cmp eax, edi
jae 0x420f50
mov edx, dword [eax]
xor edx, esi
lea ebp, [edx - 0x1010101]
not edx
and ebp, edx
test ebp, 0x80808080
je 0x420f0a
cmp byte [eax], bl
je 0x420f25
cmp byte [eax + 1], bl
je 0x420f2e
cmp byte [eax + 2], bl
je 0x420f38
cmp byte [eax + 3], bl
je 0x420f44
add eax, 4
cmp eax, edi
jb 0x420ee1
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
dec eax
pop ebx
ret 4
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
inc eax
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 2
pop ebx
ret 4
pop edi
sub eax, ecx
pop esi
pop ebp
add eax, 3
pop ebx
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret 4
Function at 0x4356fc
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43572a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x435748
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00435662
jmp 0x435748
mov eax, dword [esi + 0x14]
test eax, eax
je 0x435748
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00435662
test edi, edi
mov eax, edi
jne 0x435732
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403790
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ecx + 4]
push ebx
push esi
push edi
mov esi, dword [eax + 0xd0]
lea edi, [ecx + 8]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor ecx, eax
movzx eax, byte [edi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [esi + 0xec]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
call fcn.00403aa0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4037ff
mov eax, dword [esi + 0xf0]
cmp eax, dword [esi + 0xf0]
je 0x40381d
lea ecx, [ebp - 8]
push ecx
push dword [eax + 0x18]
push 0x1000
push dword [edi]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bcb
mov esp, ebp
pop ebp
ret
Function at 0x405b70
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp edx, eax
je 0x405cc6
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, edx
xor ecx, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 4], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.00418bd9
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x10]
je 0x405c29
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x405be7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x405cbc
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
pop edi
mov dword [edx], esi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x405c3d
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov dword [edx], eax
jmp 0x405c40
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x405cbc
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.00418bd9
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x10]
je 0x405ccd
cmp esi, eax
jne 0x405c97
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x405c50
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x406080
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x4061da
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.00405d00
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x4061ad
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x406133
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4061a3
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x40616d
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x406165
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x4061a0
cmp edi, edx
je 0x40617d
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x4061b6
cmp edi, edx
jne 0x406171
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x4060e2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x4061a0
push str.invalid_hash_bucket_count
call fcn.00418ba5
int3
Function at 0x406fa0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push ecx
lea ecx, [ebp - 0x1c]
lea eax, [edi + 0x44]
push ecx
mov ecx, eax
call fcn.004036c0
mov esi, dword [ebp - 0x14]
cmp byte [esi + 0xd], 0
jne 0x40710f
mov eax, dword [esi + 0x10]
test eax, eax
jg 0x40710f
js 0x406ff7
cmp ebx, dword [esi + 0x14]
jb 0x40710f
cmp esi, dword [edi + 0x44]
je 0x40710f
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x28]
lea eax, [esi + 0x2e]
push eax
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40710f
push 0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [esi + 0x18]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 0x19]
xor ecx, eax
movzx eax, byte [esi + 0x1a]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0x1b]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [edi + 0x64]
and ecx, eax
mov eax, dword [edi + 0x58]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
cmp eax, dword [edi + 0x50]
jne 0x407072
xor eax, eax
jmp 0x407093
mov ecx, dword [esi + 0x18]
mov ebx, dword [edx]
cmp ecx, dword [eax + 8]
je 0x407090
nop dword [eax]
cmp eax, ebx
je 0x40708e
mov eax, dword [eax + 4]
cmp ecx, dword [eax + 8]
jne 0x407080
jmp 0x407090
xor eax, eax
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4070d7
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x4070b4
cmp ecx, eax
jne 0x4070ac
mov ecx, dword [edi + 0x50]
mov dword [edx], ecx
mov dword [edx + 4], ecx
jmp 0x4070bc
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x4070bc
cmp ecx, eax
jne 0x4070bc
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
dec dword [edi + 0x54]
mov ecx, dword [eax + 4]
push 0x10
push eax
mov dword [ecx], edx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
call fcn.00418bd9
add esp, 8
push esi
lea eax, [ebp - 0xc]
push eax
lea ecx, [edi + 0x44]
call fcn.00407d30
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
lea ecx, [edi + 0x6c]
mov dword [ebp - 0xc], ebx
call fcn.00407930
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00418bcb
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bcb
mov esp, ebp
pop ebp
ret 4
Function at 0x407fd0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 8], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x408129
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0xc], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.004081f0
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x4080fc
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [ebx + 0xc]
imul edi, edi, 0x1000193
and edi, dword [ebx + 0x18]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 0x10], edx
cmp edi, esi
jne 0x408081
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x4080f2
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x4080bb
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x4080b3
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], eax
jmp 0x4080ef
cmp edi, edx
je 0x4080cc
nop
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x408105
cmp edi, edx
jne 0x4080c0
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 8]
mov eax, ecx
cmp ecx, esi
jne 0x408032
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x4080ef
push str.invalid_hash_bucket_count
call fcn.00418ba5
int3
Function at 0x408f00
Capabilities:
Inspect section memory permissions

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
movzx eax, byte [edi]
and eax, 1
mov esi, eax
or esi, 2
test byte [edi], 2
cmove esi, eax
mov ecx, esi
or ecx, 4
test byte [edi + 1], 1
cmove ecx, esi
mov edx, ecx
or edx, 8
test byte [edi + 1], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x10
test byte [edi + 2], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x20
test byte [edi + 2], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x40
test byte [edi + 3], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x80
test byte [edi + 3], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x10000
test byte [edi + 4], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x20000
test byte [edi + 4], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x40000
test byte [edi + 8], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x80000
test byte [edi + 8], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x100000
test byte [edi + 5], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x200000
test byte [edi + 5], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x400000
test byte [edi + 9], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x800000
test byte [edi + 9], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x1000000
test byte [edi + 6], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x2000000
test byte [edi + 6], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x4000000
test byte [edi + 0xa], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x8000000
test byte [edi + 0xa], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x10000000
test byte [edi + 7], 1
cmove ecx, edx
mov edx, ecx
or edx, 0x20000000
test byte [edi + 7], 2
cmove edx, ecx
mov ecx, edx
or ecx, 0x40000000
test byte [edi + 0xb], 1
cmove ecx, edx
mov eax, ecx
or eax, 0x80000000
test byte [edi + 0xb], 2
pop edi
pop esi
cmove eax, ecx
pop ebx
ret

Function at 0x409060
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
xor dl, dl
movq qword [eax], xmm0
mov dword [eax + 8], 0
test cl, 1
je 0x409080
mov byte [eax], 1
mov dl, 1
test cl, 2
je 0x40908a
or dl, 2
mov byte [eax], dl
test cl, 4
je 0x409093
or byte [eax + 1], 1
test cl, 8
je 0x40909c
or byte [eax + 1], 2
test cl, 0x10
je 0x4090a5
or byte [eax + 2], 1
test cl, 0x20
je 0x4090ae
or byte [eax + 2], 2
test cl, 0x40
je 0x4090b7
or byte [eax + 3], 1
test cl, cl
jns 0x4090bf
or byte [eax + 3], 2
test ecx, 0x10000
je 0x4090cb
or byte [eax + 4], 1
test ecx, 0x20000
je 0x4090d7
or byte [eax + 4], 2
test ecx, 0x40000
je 0x4090e3
or byte [eax + 8], 1
test ecx, 0x80000
je 0x4090ef
or byte [eax + 8], 2
test ecx, 0x100000
je 0x4090fb
or byte [eax + 5], 1
test ecx, 0x200000
je 0x409107
or byte [eax + 5], 2
test ecx, 0x400000
je 0x409113
or byte [eax + 9], 1
test ecx, 0x800000
je 0x40911f
or byte [eax + 9], 2
test ecx, 0x1000000
je 0x40912b
or byte [eax + 6], 1
test ecx, 0x2000000
je 0x409137
or byte [eax + 6], 2
test ecx, 0x4000000
je 0x409143
or byte [eax + 0xa], 1
test ecx, 0x8000000
je 0x40914f
or byte [eax + 0xa], 2
test ecx, 0x10000000
je 0x40915b
or byte [eax + 7], 1
test ecx, 0x20000000
je 0x409167
or byte [eax + 7], 2
test ecx, 0x40000000
je 0x409173
or byte [eax + 0xb], 1
test ecx, ecx
jns 0x40917b
or byte [eax + 0xb], 2
pop ebp
ret
Function at 0x41943b
Capabilities:
Parse pe header

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

Function at 0x423541
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432b58
push 0x432b50
push str.FlsAlloc
push 0x1f
call fcn.00423380
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423575
push dword [ebp + 8]
mov ecx, esi
call dword [0x4311a0]
call esi
jmp 0x42357b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4235bf
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432b68
push 0x432b60
push str.FlsGetValue
push 0x21
call fcn.00423380
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4235f6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4311a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4235fe
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x432b70
push 0x432b68
push str.FlsSetValue
push 0x22
call fcn.00423380
mov esi, eax
add esp, 0x10
test esi, esi
je 0x423638
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4311a0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x426211
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426193
Function at 0x427927
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4279c4
push ebx
push esi
call fcn.004278f0
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00427884
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x427971
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4279c3
push edi
push eax
call fcn.0042484f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x427991
call fcn.004231df
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4279c2
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00427884
add esp, 0x20
test eax, eax
jne 0x4279b0
push edi
call fcn.004231df
jmp 0x4279b8
push ebx
call fcn.004231df
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42f960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f98d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f98d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx