joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001563
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, eax
push edi
mov ebx, 0x10000
cmp esi, 0x7ff80000
jbe 0x10001586
lea eax, [esi - 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x10001589
mov dword [ebp - 4], ebx
cmp esi, 0x80000000
jae 0x1000159c
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 8], eax
jmp 0x100015a3
mov dword [ebp - 8], 0xfff80000
mov eax, dword [0x100193a8]
mov ecx, dword [0x100193a4]
test eax, eax
jne 0x100015bd
test ecx, ecx
je 0x100015d2
mov eax, ecx
mov dword [0x100193a8], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x100015d2
cmp edx, dword [ebp - 4]
jb 0x100015d2
cmp edx, dword [ebp - 8]
jbe 0x100016a3
mov eax, ecx
test ecx, ecx
jmp 0x100015f6
test eax, eax
je 0x100015f1
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x100015f1
cmp ecx, dword [ebp - 4]
jb 0x100015f1
cmp ecx, dword [ebp - 8]
jbe 0x100016a3
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x100193a8], eax
jne 0x100015d8
mov eax, esi
and eax, 0xffff
sub esi, eax
mov edi, esi
cmp esi, dword [ebp - 4]
jbe 0x10001735
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001623
mov edi, 0x6fff0000
push 0x1c
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001735
cmp dword [ebp - 0x30], ebx
jne 0x10001642
cmp dword [ebp - 0x34], ebx
jae 0x10001655
mov edi, dword [ebp - 0x3c]
add edi, 0xffff0000
cmp edi, dword [ebp - 4]
ja 0x10001611
jmp 0x10001735
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x100193a8], eax
test eax, eax
je 0x10001735
mov ecx, dword [0x100193a4]
xor edx, edx
mov dword [eax + 4], ecx
mov dword [eax], 0x52727464
mov dword [eax + 8], edx
mov dword [0x100193a4], eax
lea ecx, [eax + 0xffe0]
mov esi, 0x7fd
mov dword [ecx + 0x18], edx
mov edx, ecx
sub ecx, 0x20
dec esi
jne 0x10001695
mov dword [eax + 8], edx
mov esi, dword [eax + 8]
cmp esi, dword [ebp - 4]
jb 0x1000173a
cmp esi, dword [ebp - 8]
ja 0x1000173a
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.100044a0
add esp, 0xc
mov eax, esi
jmp 0x1000173c
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x100016e4
mov esi, 0x80010000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000173a
cmp dword [ebp - 0x14], ebx
jne 0x1000172f
cmp dword [ebp - 0x18], ebx
jb 0x1000172f
movzx ecx, si
test ecx, ecx
je 0x10001713
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x18], eax
add dword [ebp - 0x24], eax
mov esi, dword [ebp - 0x24]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x100193a8], eax
test eax, eax
jne 0x10001671
mov esi, dword [ebp - 0x24]
add esi, dword [ebp - 0x18]
cmp esi, dword [ebp - 8]
jb 0x100016d2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100017c5
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push edi
xor edi, edi
cmp dword [0x100193b0], edi
je 0x100017d8
mov eax, 0x10dd
jmp 0x10001833
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x100193b0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x100017d1
push esi
mov esi, dword [0x100193a4]
mov dword [0x100193ac], edi
mov dword [0x100193c0], edi
mov dword [0x100193bc], edi
mov dword [0x100193b4], edi
mov dword [0x100193b8], edi
jmp 0x1000182c
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [esi + 4]
cmp esi, edi
jne 0x10001816
xor eax, eax
pop esi
pop edi
pop ecx
ret

Function at 0x10001836
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100193b0], eax
je 0x1000184c
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x100193c0]
xor ebx, ebx
push edi
cmp esi, ebx
je 0x10001897
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x10001888
mov edi, dword [esi + 0x10]
cmp edi, ebx
je 0x10001888
call fcn.10001741
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.10003426
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x1000185b
mov dword [0x100193c0], ebx
call fcn.1000153c
mov esi, dword [0x100193bc]
cmp esi, ebx
je 0x100018c4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.10003426
pop ecx
mov esi, edi
cmp edi, ebx
jne 0x100018ac
pop edi
pop esi
mov dword [0x100193bc], ebx
mov dword [0x100193b0], ebx
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10001b1b
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x100193b4]
test eax, eax
jne 0x10001b8b
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x10001b37
xor eax, eax
jmp 0x10001b8a
push esi
push 8
call fcn.10003476
mov esi, eax
pop ecx
test esi, esi
jne 0x10001b4b
push 8
pop edi
jmp 0x10001b66
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001b77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10003426
pop ecx
and dword [0x100193b8], 0
mov dword [0x100193b4], edi
mov eax, edi
jmp 0x10001b89
mov eax, dword [0x100193bc]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [0x100193bc], esi
xor eax, eax
pop esi
pop edi
ret 4
Function at 0x100022e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10140fff
push 0x10002000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000233c
push str.glBegin
push str.OpenGL32.dll
call fcn.100012b4
mov dword [0x1001a194], 0x10002370
call fcn.100017c5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.10001b1b
push 0x10002370
push 0x1001a194
call fcn.10001de7
call fcn.10001ddf
mov esp, ebp
pop ebp
ret

Function at 0x10002340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
dec dword [ebp + 0xc]
jne 0x1000235d
push 0
push 0
push 0
push 0x100022a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x401b6a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x401b81
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x401ba0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x401ba5
inc edi
cmp edi, dword [ebp - 8]
jb 0x401b97
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x401c94
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x401c27
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x401bd1
cmp cl, 0xff
jne 0x401c56
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x401c67
movzx esi, byte [edx + 0x404244]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x401c17
cmp bl, 0xff
jne 0x401c64
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x401bef
dec ecx
shl edx, cl
and edx, 7
je 0x401bbe
movzx ecx, byte [edx + 0x404244]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x40423c], 0
mov cl, byte [ebx + 4]
je 0x401c53
test cl, cl
je 0x401c53
cmp cl, 0xff
jne 0x401bbe
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x401b92
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401b92
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x4034db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x4034e5
repz ret
jmp fcn.00403609
Function at 0x40427f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x4042b4
and eax, 0xffff
or eax, 0x80070000
test eax, eax
js 0x4042ed
mov edx, dword [ebp - 4]
test edi, edi
jne 0x4042c1
test esi, esi
jmp 0x4042db
test esi, esi
je 0x4042e4
cmp edx, 1
je 0x4042cf
cmp edx, 2
jne 0x4042e4
mov ecx, dword [edi]
cmp ecx, 2
jb 0x4042dd
cmp word [ecx + esi - 2], bx
je 0x4042e4
mov eax, 0x8000ffff
jmp 0x4042ed
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4042ed
mov dword [ecx], edx
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x405cd7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x405ce6
pop dword [ebp - 0x2c]
mov eax, 0x538e5ca4
add eax, 0xacb20042
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x78909505
add dword [ebp - 0x3c], 0xd5c1b046
mov dword [ebp - 0x38], 0x1c698715
sub dword [ebp - 0x38], 0xea363ad0
mov dword [ebp - 0x34], 0xa92b01b0
add dword [ebp - 0x34], 0xa321427e
mov dword [ebp - 0x30], 0x90557b94
add dword [ebp - 0x30], 0x6faa846c
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x7d955a79
sub dword [ebp - 0x3c], 0x922f123
mov dword [ebp - 0x38], 0x93cc205e
sub dword [ebp - 0x38], 0x525fbee9
mov dword [ebp - 0x34], 0x43ba71a2
add dword [ebp - 0x34], 0x1fb4faca
mov dword [ebp - 0x30], 0xa75e68fe
add dword [ebp - 0x30], 0x58a19702
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc36ba2b9
add eax, 0x3cd46e3f
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3c03d
push 0
call eax
mov ecx, 0x577a
mov esi, eax
mov edx, 0xfd0df0e0
sub edx, 0xfccabae0
add edx, dword [ebp - 0x2c]
mov edi, 0xc928f76e
sub dword [ebp - 0x14], 0x9c577c12
mov ebx, dword [edx]
xor dword [ebp - 0x28], esi
xor ebx, edi
xor dword [ebp - 0x1c], 0xe99519cb
mov dword [esi], ebx
sub dword [ebp - 0xc], 0x743c5d07
add esi, 4
add edx, 4
loop 0x405df7
add eax, 0xd223dd39
add eax, 0x2ddd7382
mov ebx, eax
add eax, 0x4916ff0d
sub eax, 0x4916ff08
mov ecx, 0xbc4ecfae
add ecx, 0x43f13052
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x4067d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401f24]
jne 0x406c05
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4092d8], eax
mov dword [0x4092d4], ecx
mov dword [0x4092d0], edx
mov dword [0x4092cc], ebx
mov dword [0x4092c8], esi
mov dword [0x4092c4], edi
mov word [0x4092f0], ss
mov word [0x4092e4], cs
mov word [0x4092c0], ds
mov word [0x4092bc], es
mov word [0x4092b8], fs
mov word [0x4092b4], gs
pushfd
pop dword [0x4092e8]
mov eax, dword [ebp]
mov dword [0x4092dc], eax
mov eax, dword [ebp + 4]
mov dword [0x4092e0], eax
lea eax, [ebp + 8]
mov dword [0x4092ec], eax
mov eax, dword [ebp - 0x320]
mov dword [0x409228], 0x10001
mov eax, dword [0x4092e0]
mov dword [0x4091dc], eax
mov dword [0x4091d0], 0xc0000409
mov dword [0x4091d4], 1
mov eax, dword [0x401f24]
mov dword [ebp - 0x328], eax
mov eax, dword [0x409184]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x409220], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401f30
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x409220], 0
jne 0x406cf1
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x406ac0
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x407630
call fcn.00406b87
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x40957c], ebx
jne 0x406859
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x24], ebx
mov edi, 0x409570
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x406893
cmp eax, esi
jne 0x406886
xor esi, esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x406896
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x40686d
xor esi, esi
inc esi
mov eax, dword [0x40956c]
cmp eax, esi
jne 0x4068a9
push 0x1f
call sub.msvcr100.dll__amsg_exit
pop ecx
jmp 0x4068e4
mov eax, dword [0x40956c]
test eax, eax
jne 0x4068de
mov dword [0x40956c], esi
push 0x401164
push 0x401158
call sub.msvcr100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4068e4
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406a00
mov dword [0x4091cc], esi
mov eax, dword [0x40956c]
cmp eax, esi
jne 0x406908
push 0x401154
push 0x40114c
call sub.msvcr100.dll__initterm
pop ecx
pop ecx
mov dword [0x40956c], 2
cmp dword [ebp - 0x24], ebx
jne 0x406915
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x409580], ebx
je 0x406936
push 0x409580
call main
pop ecx
test eax, eax
je 0x406936
push ebx
push 2
push ebx
call dword [0x409580]
mov eax, dword [sym.imp.msvcr100.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x406991
cmp al, bl
je 0x40694f
cmp dword [ebp - 0x1c], ebx
jne 0x406991
mov al, byte [esi]
cmp al, bl
je 0x40695f
cmp al, 0x20
ja 0x40695f
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40694f
test byte [ebp - 0x40], 1
je 0x40696b
movzx eax, word [ebp - 0x3c]
jmp 0x40696e
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
jmp 0x40697d
mov dword [0x4091c8], eax
cmp dword [0x4091bc], ebx
jne 0x4069e6
push eax
call dword [sym.imp.msvcr100.dll_exit]
cmp al, 0x22
jne 0x4069a0
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcr100.dll__ismbblead]
pop ecx
test eax, eax
je 0x4069b3
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x40693d
cmp dword [0x4091cc], ebx
jne 0x4069f4
call dword [sym.imp.msvcr100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x4091c8]
call fcn.00406bcc
ret
call main
jmp 0x40682b
Function at 0x517ed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xfc000]
push edi
jmp 0x517eea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x517ef1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517ee0
mov eax, 1
add ebx, ebx
jne 0x517f03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x517f14
jne 0x517f33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517f33
dec eax
add ebx, ebx
jne 0x517f20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x517ef8
add ebx, ebx
jne 0x517f2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x517f85
xor ecx, ecx
sub eax, 3
jb 0x517f4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x517fba
sar eax, 1
mov ebp, eax
jmp 0x517f56
add ebx, ebx
jne 0x517f56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517f24
inc ecx
add ebx, ebx
jne 0x517f64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517f24
add ebx, ebx
jne 0x517f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x517f66
jne 0x517f82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x517f66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x517fa4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517f96
jmp 0x517ee6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x517fa4
add edi, ecx
jmp 0x517ee6
pop esi
mov edi, esi
mov ecx, 0x40f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x517fc2
cmp byte [edi], 7
jne 0x517fc2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x517fc7
lea edi, [esi + 0x114000]
mov eax, dword [edi]
or eax, eax
je 0x518036
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x129fe8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a068]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x517ff4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a070]
or eax, eax
je 0x518030
mov dword [ebx], eax
add ebx, 4
jmp 0x518011
call dword [esi + 0x12a06c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x518067
cmp al, 0xef
ja 0x51805a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51803c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x518049
mov ebp, dword [esi + 0x12a074]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x51809b
sub esp, 0xffffff80
jmp 0x403050
Function at 0x401060
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
xor ebx, ebx
mov esi, esi
mov eax, esi
xor ebx, eax
mov esi, ebx
xor eax, eax
mov esi, eax
xor esi, ebx
xor eax, esi
bswap eax
not eax
mov ebx, 0x38
sub edx, 0x5f
bswap ebx
imul esi
dec esi
or ebx, 0xff
neg esi
dec eax
bswap eax
imul esi
rol edi, 0x1c
add edi, 0x1e
dec eax
dec edx
rcr edx, 0x9d
or edi, 0xb0
imul edi
sub esi, 0xd
not edx
bswap ebx
rol edx, 0xca
ror eax, 1
mov edi, 0x7f
and esi, 0x1a
and eax, 0x53
imul edx
and eax, 0xa4
sub eax, 0xa2
bswap edi
bswap edx
rcl ebx, 0x82
dec eax
bswap ebx
rcr ebx, 0xc7
sub esi, 0x33
sbb ebx, 0xdf
rcr edi, 0xb2
not esi
rol eax, 0x1a
sub edx, 0xc0
not edx
mov esi, 0xfa
neg esi
rcr ebx, 0x2d
rol edx, 0x6f
mov ebx, 0xc
imul edx
rcr edi, 0x95
xor ecx, ecx
xor edi, edi
xor ebx, esi
mov esi, eax
xor eax, eax
mov ebx, esi
mov ebx, ebx
mov eax, ebx
not eax
bswap edx
rcr ebx, 0x36
dec esi
mov edi, 8
neg edi
inc eax
rol esi, 0x51
inc edx
add eax, 0x6e
add edx, 0x97
and eax, 0x7e
add eax, 0xae
add edx, 1
rcr edi, 0x60
not edx
rcl edi, 0x14
rol esi, 0xd7
rcl esi, 0xa5
rol edx, 0x25
or edx, 0xdd
not edx
mov esi, 0x52
neg eax
dec edi
inc eax
bswap esi
not esi
imul edi
inc eax
and edi, 0xc
dec edx
inc ebx
dec eax
inc esi
rol eax, 0xc
rol edx, 0x23
sub ebx, 0x43
dec eax
bswap edx
sbb edi, 0x2c
mov esi, 0x35
sbb esi, 0xcc
sbb ebx, 0x91
dec eax
sub eax, 0xf8
bswap eax
bswap eax
inc ebx
not esi
xor ebx, ebx
xor ebx, esi
mov esi, esi
xor ebx, esi
mov eax, esi
xor esi, esi
xor esi, esi
xor esi, esi
mov esi, eax
mov ecx, dword [ebp + 0xc]
dec edx
sub eax, 0x96
imul ebx
add edi, 0x2d
or eax, 0x3e
ror eax, 0x34
dec esi
sbb esi, 0x4f
imul edi
mov esi, 0x92
not eax
mov eax, 0xb1
or esi, 0x3a
and edx, 0xf9
sbb eax, 0xa
imul edx
dec edx
ror esi, 0x3a
imul eax
inc esi
mov edx, 0xd5
and eax, 0x72
ror eax, 0x43
mov edx, 0x16
imul edx
bswap edi
imul edx
not ebx
rcl esi, 0x8d
rcr eax, 0x44
sub esi, 0xce
sbb ebx, 0x9c
dec ebx
dec eax
ror eax, 0x15
sub edx, 0x40
bswap edx
dec eax
mov edi, 0xb5
dec edx
mov esi, 0x6c
sbb edi, 0xe1
or edi, 0xee
neg edi
rcl edi, 0x2b
rol ebx, 0x21
mov eax, 0xc7
sbb edx, 0x31
neg ebx
or ebx, 1
mov edi, dword [ebp + 8]
xor eax, ebx
xor ebx, eax
xor ebx, eax
xor esi, eax
mov esi, ebx
mov esi, esi
xor eax, eax
mov esi, eax
mov eax, eax
not byte [edi]
xor esi, ebx
xor esi, eax
xor ebx, esi
mov eax, eax
mov esi, ebx
xor esi, eax
mov esi, ebx
mov esi, esi
xor eax, ebx
xor eax, esi
xor esi, esi
mov esi, ebx
add byte [edi], 0xff
sub byte [edi], 0x4a
xor esi, eax
xor ebx, ebx
mov eax, esi
xor ebx, ebx
mov esi, eax
mov eax, eax
xor esi, esi
xor eax, eax
xor ebx, eax
imul byte [edi]
inc edi
loop 0x40125b
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4041b0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4041ef
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4041ef
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4041ef
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4041ef
cmp dword [ecx + 0x74], 0xe
jbe 0x4041ef
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x409d43
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 0x409de0
push ebx
push esi
call fcn.00409d0c
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.00409ca0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409d8d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409ddf
push edi
push eax
call fcn.0040a960
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409dad
call fcn.00408801
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409dde
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409ca0
add esp, 0x20
test eax, eax
jne 0x409dcc
push edi
call fcn.00408801
jmp 0x409dd4
push ebx
call fcn.00408801
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 0x40b0dd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b040
push 0x41b038
push str.FlsAlloc
push 0x1f
call fcn.0040af9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b111
push dword [ebp + 8]
mov ecx, esi
call dword [0x413154]
call esi
jmp 0x40b117
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40b15b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b050
push 0x41b048
push str.FlsGetValue
push 0x21
call fcn.0040af9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b192
push dword [ebp + 8]
mov ecx, esi
call dword [0x413154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40b19a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b058
push 0x41b050
push str.FlsSetValue
push 0x22
call fcn.0040af9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40b1d4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413154]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x410630
Capabilities:
Parse pe header

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