joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c930
Capabilities:
Access peb ldr_data

Disassembly:
sub esp, 0x2c
call sym.runtime.traceAcquire
mov eax, dword [0x50eb40]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 0x18]
mov edx, dword [esp]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 4]
mov dword [esp + 0xc], ebx
inc dword [ecx + 0x7c]
mov dword [eax + 8], 0xfffffade
mov byte [eax + 0x6b], 1
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
mov ebp, dword [esp + 0x34]
mov dword [esp + 4], ebp
call sym.runtime.save
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x38], eax
mov edx, dword [esp + 0x30]
mov dword [ecx + 0x3c], edx
mov dword [esp], ecx
mov dword [esp + 4], 2
mov dword [esp + 8], 3
call sym.runtime.casgstatus
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x38]
cmp dword [eax], ecx
ja 0x43c9b5
cmp dword [eax + 4], ecx
jae 0x43c9e3
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
lea ecx, [sym.runtime.reentersyscall.func1]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x24]
mov dword [esp], ecx
call sym.runtime.systemstack
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x43ca39
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
lea eax, [sym.runtime.reentersyscall.func2]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
mov dword [esp], eax
call sym.runtime.systemstack
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call sym.runtime.save
lea eax, [0x4d1000]
mov dword [esp], eax
call sym.runtime_internal_atomic.Load8
movzx eax, byte [esp + 4]
test al, al
je 0x43ca72
lea eax, [0x473b34]
mov dword [esp], eax
call sym.runtime.systemstack
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call sym.runtime.save
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x58]
test byte [ecx], al
mov ecx, dword [ecx + 0x11a0]
test ecx, ecx
je 0x43caae
lea eax, [0x473bec]
mov dword [esp], eax
call sym.runtime.systemstack
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call sym.runtime.save
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx + 0x58]
mov edx, dword [edx + 0x10]
mov dword [ecx + 0x1f8], edx
mov ecx, dword [eax + 0x18]
mov ecx, dword [ecx + 0x58]
lea edx, [ecx + 4]
mov dword [ecx + 0x2c], 0
mov ebx, dword [eax + 0x18]
mov dword [ebx + 0x60], ecx
mov ecx, dword [eax + 0x18]
mov dword [ecx + 0x58], 0
mov dword [esp], edx
mov dword [esp + 4], 2
call sym.runtime_internal_atomic.Store
lea eax, [0x4d0ff4]
mov dword [esp], eax
call sym.runtime_internal_atomic.Load8
movzx eax, byte [esp + 4]
test al, al
je 0x43cb26
lea eax, [0x473b30]
mov dword [esp], eax
call sym.runtime.systemstack
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
call sym.runtime.save
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x18]
dec dword [eax + 0x7c]
add esp, 0x2c
ret
Function at 0x44c460
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0x50eb40]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x44c5da
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x44c5d0
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x44c4ba
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x44c4ba
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x44c4cd
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x44c5a7
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x44c59b
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x44c592
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x44c520
mov dword [esp + 0xc], ecx
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x44c563
mov eax, 1
cmp eax, ecx
ja 0x44c557
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
sub ecx, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and eax, ebp
add eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call sym.runtime.panicSliceBU
lea esi, [ecx + 7]
mov ecx, dword [esp + 0xc]
cmp eax, ecx
jae 0x44c58d
movzx edi, byte [eax + ebx]
xchg edi, eax
mov byte [esp + 0xb], al
xchg edi, eax
and edi, 0x7f
mov ecx, esi
shl edi, cl
inc eax
or edx, edi
movzx edi, byte [esp + 0xb]
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x44c55c
mov ecx, dword [esp + 0xc]
jmp 0x44c525
call sym.runtime.panicIndexU
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
call sym.runtime.panicSliceBU
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
cmp ecx, eax
jbe 0x44c5cb
movzx esi, byte [eax + edx]
mov edi, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
inc eax
or ebx, esi
xchg edi, eax
test al, 0x80
xchg edi, eax
jne 0x44c5a0
mov ecx, dword [esp + 0x18]
jmp 0x44c4d2
call sym.runtime.panicIndexU
xor eax, eax
mov ecx, eax
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.runtime.step
Function at 0x453a60
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x50eb40]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x453be4
sub esp, 0x24
movzx eax, byte [esp + 0x28]
movzx ebx, al
add ebx, dword [edx + 4]
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
mov edi, esi
shl esi, 8
or ebp, esi
shr edi, 0x18
movzx esi, byte [ebx + 2]
mov ecx, esi
shr esi, 0x10
or esi, edi
shl ecx, 0x10
or ecx, ebp
movzx ebp, byte [ebx + 3]
mov edi, ebp
shr ebp, 8
or ebp, esi
shl edi, 0x18
movzx esi, byte [ebx + 4]
or esi, ebp
movzx ebp, byte [ebx + 5]
shl ebp, 8
or esi, ebp
movzx ebp, byte [ebx + 6]
shl ebp, 0x10
or ebp, esi
movzx ebx, byte [ebx + 7]
shl ebx, 0x18
or edi, ecx
or ebx, ebp
movzx ebp, byte [esp + 0x29]
xchg ebp, eax
cmp al, 8
xchg ebp, eax
jae 0x453b71
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], edi
shl ebp, 3
lea ecx, [ebp - 0x40]
neg ecx
mov byte [esp + 0xa], cl
shl ebx, cl
mov esi, edi
shl esi, cl
add ebp, 0xffffffe0
mov ecx, ebp
shr edi, cl
neg ecx
mov byte [esp + 0xb], cl
mov eax, dword [esp + 0x18]
shl eax, cl
mov dword [esp + 0x18], eax
movzx edx, byte [esp + 0xa]
cmp dl, 0x20
sbb eax, eax
mov dword [esp + 0x14], eax
and ebx, eax
and esi, eax
mov ecx, edx
shr esi, cl
and esi, eax
xchg ebp, eax
cmp al, 0x20
xchg ebp, eax
sbb eax, eax
and edi, eax
or edi, ebx
movzx edx, byte [esp + 0xb]
cmp dl, 0x20
sbb ebx, ebx
mov edx, dword [esp + 0x18]
and edx, ebx
or edi, edx
mov edx, ecx
mov ecx, ebp
mov ebp, edi
shl edi, cl
and edi, eax
or edi, esi
movzx ecx, byte [esp + 0xb]
mov eax, ebp
shr ebp, cl
and ebp, ebx
mov ecx, edx
shr eax, cl
mov ebx, dword [esp + 0x14]
and ebx, eax
or edi, ebp
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
mov eax, dword [edx + 8]
mov dword [esp + 0x1c], eax
call sym.runtime.printlock
mov eax, dword [esp + 0xc]
mov dword [esp], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
call sym.runtime.printhex
call sym.runtime.printunlock
mov edx, dword [esp + 0x1c]
mov eax, dword [edx]
movzx ecx, byte [esp + 0x28]
mov byte [esp], cl
movzx ecx, byte [esp + 0x2a]
mov byte [esp + 1], cl
call eax
movzx eax, byte [esp + 4]
test al, al
jne 0x453be0
call sym.runtime.printlock
lea eax, [0x46dde3]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime.printstring
call sym.runtime.printunlock
add esp, 0x24
ret
call sym.runtime.morestack
jmp sym.runtime.printArgs.func2
Function at 0x455380
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x50eb40]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45541b
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0x50eb40]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0045c817
lea ecx, [sym.runtime.callers.func1]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call sym.runtime.systemstack
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call sym.runtime.morestack_noctxt
jmp sym.runtime.callers
Function at 0x45c520
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x50ea44], 0
je 0x45c53a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x45c540
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x50ea44], 0
je 0x45c55b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x45d370
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x45d38a
mov ecx, 0x14
jmp 0x45d393
shl ecx, 2
add ecx, 0xe10
mov dword [0x50eb40], ecx
ret

Function at 0x4022e8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
mov ecx, 0xa
xor edi, edi
pop esi
mov dword [0x4041a8], esi
push edi
dec ecx
jne 0x40230f
lea eax, [ebp - 0x4c]
push eax
mov edx, dword [0x4041a8]
mov dword [ebp - 0x3c], edx
lea ecx, str.contents
mov dword [ebp - 0x28], ecx
lea eax, section..text
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_RegisterClassW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
xor eax, eax
push eax
push dword [0x4041a8]
push eax
push eax
push 0x1f4
push 0x2f4
push 0x578
push 0xce4
push 0
mov ecx, str.frantically
push eax
push str.contents
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4041b8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4041b8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4023c3
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea ecx, [ebp - 0x40]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4023aa
pop ebp
ret 0x10
Function at 0x401237
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
and dword [ebp - 0x10], 0
push ebx
push esi
mov esi, ecx
lea ecx, [ebp - 0x10]
push edi
mov dword [ebp - 0x30], esi
mov eax, dword [esi + 4]
mov edi, dword [esi]
mov dword [ebp - 0x14], eax
mov eax, dword [0x41b2f8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x41b2fc]
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x24], eax
call fcn.00401230
mov ebx, dword [ebp - 0x10]
mov ecx, dword [0x41b300]
add ebx, 0x23f
mov edx, dword [0x41b304]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0x14], 2
add dword [ebp - 0x14], 3
mov eax, edi
mov dword [ebp - 0x10], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb5facc], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xb5fac8]
cmove eax, dword [ebp - 0x10]
and dword [ebp - 0x10], 0
cmp dword [0xb5facc], 0x3eb
mov dword [0xb5fac8], eax
mov eax, dword [0xb5fa20]
cmove eax, dword [ebp - 0x10]
mov dword [0xb5fa20], eax
lea eax, [ebx + edi]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add dword [ebp - 8], edx
and dword [ebp - 0xc], 0
mov dword [0xb5fac4], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor eax, dword [ebp - 0x10]
sub esi, eax
mov dword [ebp - 8], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
lea eax, [ebx + esi]
mov edx, esi
lea ebx, [ebx + 0x61c88647]
shr edx, cl
add edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 8], edx
xor edx, eax
mov eax, dword [ebp - 4]
xor eax, edx
mov edx, dword [ebp - 0x2c]
sub edi, eax
mov dword [ebp - 4], eax
dec dword [ebp - 0x18]
mov dword [ebp - 0xc], edi
jne 0x401291
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov dword [esi], edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d3fe
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41af20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409c0e
mov dword [ebp - 0x14], eax
cmp dword [0x4bb2bc], esi
jne 0x40d4f1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d47e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d5d1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d5d1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d5d1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4bb2bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4bb2c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4bb2c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb2cc], eax
test eax, eax
je 0x40d4ee
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4bb2c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d516
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d509
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d52b
push 4
pop eax
jmp 0x40d5d3
cmp dword [ebp - 0x14], esi
je 0x40d52b
push dword [0x4bb2bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d510
mov eax, dword [0x4bb2c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d589
cmp dword [0x4bb2cc], edi
je 0x40d589
push eax
call ebx
push dword [0x4bb2cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d589
test eax, eax
je 0x40d589
call ecx
test eax, eax
je 0x40d57e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d57e
test byte [ebp - 8], 1
jne 0x40d589
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d5b9
mov eax, dword [0x4bb2c0]
cmp eax, edi
je 0x40d5b6
push eax
call ebx
test eax, eax
je 0x40d5b6
call eax
mov esi, eax
test esi, esi
je 0x40d5b6
mov eax, dword [0x4bb2c4]
cmp eax, edi
je 0x40d5b6
push eax
call ebx
test eax, eax
je 0x40d5b6
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4bb2bc]
call ebx
test eax, eax
je 0x40d5d1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d5d3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404247
mov esp, ebp
pop ebp
ret
Function at 0x5a89aa
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x5a89e9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5a89e9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5a89e9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x5a89e9
cmp dword [ecx + 0x74], 0xe
jbe 0x5a89e9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x5afc98
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 0x5afd35
push ebx
push esi
call fcn.005afc61
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.005afbf5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5afce2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5afd34
push edi
push eax
call fcn.005ae5fb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5afd02
call fcn.005ae649
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5afd33
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005afbf5
add esp, 0x20
test eax, eax
jne 0x5afd21
push edi
call fcn.005ae649
jmp 0x5afd29
push ebx
call fcn.005ae649
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 0x5b0f44
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b9bc0
push 0x5b9bb8
push str.FlsAlloc
push 0x1f
call fcn.005b0e03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b0f78
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b7134]
call esi
jmp 0x5b0f7e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5b0fc5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b9bd0
push 0x5b9bc8
push str.FlsGetValue
push 0x21
call fcn.005b0e03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b0ffc
push dword [ebp + 8]
mov ecx, esi
call dword [0x5b7134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5b1004
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5b9bd8
push 0x5b9bd0
push str.FlsSetValue
push 0x22
call fcn.005b0e03
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5b103e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5b7134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x5b6400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5b642d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5b642d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40e990
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov dword [0x5d4470], eax
xor eax, eax
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5d446c]
mov edx, ecx
shr edx, 0x1e
xor edx, ecx
imul edx, edx, 0x6c078965
add edx, eax
mov dword [eax*4 + 0x5d4470], edx
cmp eax, 0x26f
jl 0x40e9a0
mov dword [0x564f60], 0x270
mov esp, ebp
pop ebp
ret

Function at 0x40e9e0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0xffffffff
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5d4474]
mov ebx, dword [eax*4 + 0x5d4470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5d4aa4]
mov dword [eax*4 + 0x5d4470], edx
cmp eax, 0xe2
jl 0x40e9f0
mov eax, 0xe2
lea esi, [esi]
add eax, 1
mov ecx, dword [eax*4 + 0x5d4474]
mov ebx, dword [eax*4 + 0x5d4470]
mov edx, ecx
and edx, 1
neg edx
and edx, 0x9908b0df
and ebx, 0x80000000
and ecx, 0x7fffffff
or ebx, ecx
shr ebx, 1
xor edx, ebx
xor edx, dword [eax*4 + 0x5d40e4]
mov dword [eax*4 + 0x5d4470], edx
cmp eax, 0x26e
jl 0x40ea40
mov edx, dword [0x5d4470]
mov ecx, dword [0x5d4e2c]
mov eax, edx
and eax, 1
neg eax
and eax, 0x9908b0df
and ecx, 0x80000000
and edx, 0x7fffffff
or ecx, edx
shr ecx, 1
xor eax, ecx
xor eax, dword [0x5d4aa0]
mov dword [0x5d4e2c], eax
mov dword [0x564f60], 0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40ead0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x564f60]
add dword [0x564f60], 1
mov eax, dword [0x5d3020]
cmp eax, dword [0x5646b0]
jne 0x40eaf6
cmp ebx, 0x271
jb 0x40eb18
mov eax, dword [0x5d3020]
call fcn.0040e990
not dword [0x5d3020]
mov eax, dword [0x5d3020]
mov dword [0x5646b0], eax
mov ebx, 0x270
lea esi, [esi]
cmp ebx, 0x270
jne 0x40eb34
call fcn.0040e9e0
xor ebx, ebx
mov dword [0x564f60], 1
lea esi, [esi]
mov edx, dword [ebx*4 + 0x5d4470]
mov eax, edx
shr eax, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor edx, eax
mov ecx, edx
shl ecx, 0xf
and ecx, 0xefc60000
xor ecx, edx
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410760
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ax, word [0x564440]
cmp ax, 0xcb
je 0x41086c
cmp ax, 0xcc
je 0x41086c
mov edx, dword [0x5d5070]
test edx, edx
je 0x410795
mov eax, dword [0x5d4f20]
call edx
mov ebx, eax
jmp 0x41079a
mov ebx, 0x5d4f24
cmp word [0x5d4f10], 0
jle 0x4107c0
mov eax, 0x5d4ef0
call fcn.004109e0
mov eax, ebx
call fcn.004102e0
mov eax, ebx
call fcn.00410360
lea esi, [esi]
mov edi, dword [ebx]
jmp 0x4107e2
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x4107dd
mov edx, edi
mov eax, ebx
call fcn.0040f730
jmp 0x4107e0
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x4107c8
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x5d4f10], 0
jle 0x41086c
mov edx, 0x5d4e30
mov eax, ebx
call fcn.0040f880
mov edi, eax
test edi, edi
je 0x41083c
mov eax, dword [0x5d4ec4]
mov dword [edi + 0xc], eax
cmp dword [0x5d4ec4], 0
je 0x410830
mov eax, dword [0x5d4ec4]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x5d4ec4], eax
nop
sub word [0x5d4f10], 1
cmp word [0x5d4f10], 0
sete bl
mov eax, 0x5d4ef0
call fcn.00410a00
test bl, bl
je 0x41086c
mov eax, 0x5d4ef0
call fcn.004109d0
lea esi, [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret