joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1021960a
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x9c
mov eax, 0x1024bd17
call fcn.1021e371
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], eax
push 0xfde9
push dword [ebp + 8]
xor edi, edi
lea eax, [ebp - 0xa4]
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xa8], eax
call fcn.10214cbe
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.1020fa78
lea eax, [ebp - 0xa4]
mov byte [ebp - 4], 3
cmp dword [ebp - 0xa8], eax
je 0x1021967e
push dword [ebp - 0xa8]
call fcn.102279a0
pop ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax - 0xc]
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x10219705
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
add eax, dword [ebx + 0x1c]
push eax
mov dword [ecx], eax
call fcn.1021dd8e
mov ecx, dword [ebp - 0x20]
mov dword [esi], eax
push dword [ecx]
push edi
push eax
call fcn.10220c90
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x1c]
push dword [esi]
call fcn.1021d356
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebx + 0x1c]
mov ecx, dword [eax - 0xc]
add esi, dword [edx]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
push esi
call fcn.1021d356
add esp, 0x30
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push eax
push esi
push edi
push 1
push edi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x1021970d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.10216974
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10216974
mov eax, edi
call fcn.1021e31b
ret 0xc
Function at 0x1021a5f6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x8c
mov eax, 0x1024be5d
call fcn.1021e371
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x88], eax
xor eax, eax
mov dword [ebp - 0x84], 0x776f534f
push eax
push eax
sub esp, 0xc
mov dword [ebp - 0x80], 0x4673684b
mov ecx, esp
mov dword [ebp - 0x7c], 0x75776841
mov dword [ebp - 0x78], 0x686c7741
mov dword [ebp - 0x74], 0x62516e46
push dword [ebp - 0x8c]
mov dword [ebp - 0x70], 0x77644149
mov dword [ebp - 0x6c], 0x38344242
mov dword [ebp - 0x68], 0x78466a4e
mov dword [ebp - 0x64], 0x4a734463
mov dword [ebp - 0x60], 0x6e415744
mov dword [ebp - 0x5c], 0x6a5a7943
mov dword [ebp - 0x58], 0x4b4d7750
mov dword [ebp - 0x54], 0x774d5346
mov dword [ebp - 0x50], 0x31555859
mov dword [ebp - 0x4c], 0x526f7865
mov dword [ebp - 0x48], 0x496f5341
mov dword [ebp - 0x44], 0x43597a4b
mov dword [ebp - 0x40], 0x4945774d
mov dword [ebp - 0x3c], 0x32303245
mov dword [ebp - 0x38], 0x3345524f
mov dword [ebp - 0x34], 0x74785265
mov dword [ebp - 0x30], 0x56554745
mov dword [ebp - 0x2c], 0x5967534a
mov dword [ebp - 0x28], 0x39675147
mov dword [ebp - 0x24], 0x41385465
mov dword [ebp - 0x20], 0x47424141
mov dword [ebp - 4], eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1020f1e0
lea eax, [ebp - 0x98]
push eax
call fcn.10212422
add esp, 0x10
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.1021ba00
push eax
lea ecx, [ebp + 0x14]
call fcn.10212682
cmp eax, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x98]
setne bl
call fcn.1021b882
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi]
call dword [eax + 4]
push 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.1021b9b7
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x1c]
test bl, bl
push 0x18
pop esi
push 0
pop edx
push ecx
mov ecx, dword [ebp - 0x88]
cmovne edx, esi
push eax
add ecx, edx
push ecx
call fcn.10222930
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.1021b7ff
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.10216974
mov al, 1
call fcn.1021e31b
ret
Function at 0x1021d574
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x1062572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [eax]
mov dword [ebp - 0x24], eax
call fcn.1021d537
push esi
call fcn.1021d89c
mov esi, eax
push edi
mov dword [ebp - 0x14], esi
call fcn.1021d89c
push 0x58
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.10220c90
lea eax, [ebp - 0x7c]
push eax
push 5
push esi
call fcn.1021d421
mov edi, eax
add esp, 0x20
cmp edi, 5
jb 0x1021d712
push edi
push esi
call fcn.1021d980
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push esi
call fcn.1021db0c
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x1021d70d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0xc]
and dword [ebp - 8], 0
push ecx
push 0x40
push edi
push esi
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1021d6f2
lea eax, [ebp - 8]
push eax
push 0x40
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1021d6d5
xor edx, edx
lea ecx, [ebx + 0x2c]
test edi, edi
je 0x1021d65b
sub esi, ecx
mov al, byte [esi + ecx]
mov byte [ecx], al
mov byte [ebx + edx + 0x4c], al
inc edx
inc ecx
cmp edx, edi
jb 0x1021d646
mov esi, dword [ebp - 0x14]
lea ecx, [ebx + 0x2c]
lea eax, [edi + esi]
push eax
lea eax, [ecx + edi]
push eax
call fcn.1021d4ee
mov edx, dword [ebp - 0x18]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
push edx
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x1021d6a1
lea esi, [ebx + 0xc]
push esi
call fcn.1021d4ee
pop ecx
pop ecx
sub eax, ebx
sub eax, 0xc
push eax
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
push esi
mov esi, dword [ebp - 0x14]
push esi
call fcn.1021d4ee
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebx + 8], eax
lea eax, [ebx + 0x2c]
push edi
push eax
push dword [ebp - 0x10]
mov dword [ebx + 4], edi
mov dword [ebx], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x6c
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0xc]
push edi
push esi
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [ebx], 0
je 0x1021d701
mov ecx, dword [ebp - 0x24]
lea eax, [ebx + 0x2c]
mov dword [ecx], eax
jmp 0x1021d70d
push 1
push ebx
call fcn.1021dc13
pop ecx
pop ecx
xor ebx, ebx
call fcn.1021d81e
push 0x10627988
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
test ebx, ebx
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.1021dc50
mov esp, ebp
pop ebp
ret
Function at 0x1021d735
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1062572c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0xc], ebx
xor edi, edi
call fcn.1021d537
xor esi, esi
mov eax, dword [esi*4 + 0x106279a0]
test eax, eax
je 0x1021d76d
add eax, 0x2c
cmp eax, dword [ebx]
je 0x1021d812
inc esi
cmp esi, 0x40
jb 0x1021d757
xor esi, esi
test esi, esi
je 0x1021d7f4
push dword [esi + 4]
push dword [esi]
call fcn.1021d980
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 8], edi
mov ebx, eax
lea eax, [ebp - 8]
push eax
push 0x40
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1021d7ef
mov edx, dword [esi]
xor ecx, ecx
cmp dword [esi + 4], ecx
jbe 0x1021d7bc
mov al, byte [esi + ecx + 0x4c]
mov byte [ecx + edx], al
inc ecx
cmp ecx, dword [esi + 4]
jb 0x1021d7af
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [esi + 4]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ecx, dword [ebp - 0xc]
xor edi, edi
mov eax, dword [esi]
inc edi
push 0
push esi
mov dword [ecx], eax
call fcn.1021dc13
pop ecx
pop ecx
call fcn.1021d81e
push 0x10627988
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1021dc50
mov esp, ebp
pop ebp
ret
mov esi, dword [esi*4 + 0x106279a0]
jmp 0x1021d775

Function at 0x1021d81e
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0xf
mov dword [ebp - 4], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor esi, esi
cmp dword [0x10627aa8], esi
jbe 0x1021d870
mov eax, dword [0x10627aa4]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x10627aa4]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [0x10627aa8]
jb 0x1021d84b
push dword [0x10627aa4]
call fcn.102279a0
and dword [0x10627aa4], 0
and dword [0x10627aa8], 0
pop ecx
push dword [ebp - 4]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1021d8d4
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
mov eax, dword [0x1062572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
cmp esi, 0xffffffff
je 0x1021d96e
test esi, esi
je 0x1021d96e
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1021d965
mov dword [ebp - 0x2d0], 0x10001
xor ebx, ebx
jmp 0x1021d951
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x218], eax
jb 0x1021d96e
add eax, dword [ebp + 0x10]
cmp dword [ebp - 0x218], eax
jae 0x1021d96e
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp ebx, 3
jge 0x1021d965
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
inc ebx
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1021d91f
jmp 0x1021d96e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1021dc50
mov esp, ebp
pop ebp
ret

Function at 0x1021db0c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1062572c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
mov dword [ebp - 0x48], eax
cmp dword [0x10627aa0], 0x40
jae 0x1021dc02
push esi
lea esi, [edx + ecx]
add ecx, dword [ebp + 0x14]
push edi
cmp ecx, 0x80000000
lea edi, [ebp - 0x44]
push 9
lea eax, [ecx + 0x7ff80000]
mov edx, 0xfff80000
cmovb edx, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x48], edx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
mov esi, dword [ebp - 0x48]
cmovb edi, eax
cmp edi, esi
jae 0x1021dc00
push 0x1c
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1021dbdb
cmp dword [ebp - 0x10], 0x10000
jne 0x1021dbcf
mov eax, dword [ebp - 0x14]
cmp eax, 0x6c
jb 0x1021dbd2
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
jb 0x1021dbd2
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1021dbdf
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
add edi, eax
cmp edi, esi
jb 0x1021db84
test ebx, ebx
je 0x1021dc00
xor eax, eax
cmp dword [eax*4 + 0x106279a0], 0
je 0x1021dbf3
inc eax
cmp eax, 0x40
jb 0x1021dbe1
jmp 0x1021dc00
inc dword [0x10627aa0]
mov dword [eax*4 + 0x106279a0], ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.1021dc50
mov esp, ebp
pop ebp
ret

Function at 0x1022aa7f
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1022a984
Function at 0x10234b32
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1a311d7d
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x63880b0b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4073a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46daa8]
jne 0x4073ae
repz ret
jmp fcn.004087fe

Function at 0x407880
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46daa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405eed
and dword [ebp - 0x14], 0
cmp dword [0x484d18], 0
mov dword [ebp - 0x18], eax
jne 0x407933
push 0x402198
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4079db
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40218c
push ebx
call edi
test eax, eax
je 0x4079db
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40217c
push ebx
mov dword [0x484d18], eax
call edi
push eax
call esi
push 0x402168
push ebx
mov dword [0x484d1c], eax
call edi
push eax
call esi
push 0x40214c
push ebx
mov dword [0x484d20], eax
call edi
push eax
call esi
mov dword [0x484d28], eax
test eax, eax
je 0x407933
push 0x402134
push ebx
call edi
push eax
call esi
mov dword [0x484d24], eax
mov eax, dword [0x484d24]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40798c
cmp dword [0x484d28], ecx
je 0x40798c
push eax
call esi
push dword [0x484d28]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40798c
test ebx, ebx
je 0x40798c
call edi
test eax, eax
je 0x407983
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407983
test byte [ebp - 8], 1
jne 0x40798c
or dword [ebp + 0x10], 0x200000
jmp 0x4079bf
mov eax, dword [0x484d1c]
cmp eax, dword [ebp - 0x18]
je 0x4079bf
push eax
call esi
test eax, eax
je 0x4079bf
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4079bf
mov eax, dword [0x484d20]
cmp eax, dword [ebp - 0x18]
je 0x4079bf
push eax
call esi
test eax, eax
je 0x4079bf
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x484d18]
call esi
test eax, eax
je 0x4079db
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4079dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004073a4
leave
ret
Function at 0x401110
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, dword [esi]
xor eax, eax
and ebp, 7
cmp edx, 5
mov dword [esp + 0xc], ecx
jae 0x401131
pop esi
pop ebp
add esp, 0xc
ret 0xc
mov esi, dword [esp + 0x18]
add esi, 5
lea edx, [ecx + edx - 4]
push ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], edx
push edi
mov edi, edi
mov ecx, dword [esp + 0x14]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x40116f
jmp 0x401160
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x40116f
add edi, 1
cmp edi, edx
jb 0x401160
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp edi, edx
jae 0x401285
cmp ecx, 3
jbe 0x4011a5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x10], eax
je 0x4011e3
cmp cl, 0xff
je 0x4011e3
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x401150
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x401188
movzx ecx, byte [ebp + 0x4b18a0]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x4b1898], 0
mov cl, byte [ebx + 4]
je 0x4011cf
test cl, cl
je 0x4011cf
cmp cl, 0xff
jne 0x401188
and ebp, 3
add ebp, ebp
mov dword [esp + 0x10], eax
or ebp, 1
add eax, 1
jmp 0x401150
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40120e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x401214
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x401256
movzx esi, byte [ebp + 0x4b18a0]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x401239
cmp dl, 0xff
jne 0x401252
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x401200
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x18]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x401150
cmp ecx, 3
pop edi
pop ebx
jbe 0x40129c
mov ecx, dword [esp + 0x1c]
xor ebp, ebp
pop esi
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x1c]
pop esi
and ebp, 7
mov dword [ecx], ebp
pop ebp
add esp, 0xc
ret 0xc
Function at 0x4156b7
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4d406c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41571a
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0045c170
leave
ret

Function at 0x415b9a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4d406c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x104
lea eax, [ebp - 0x110]
push ebx
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.0045e560
add esp, 0xc
lea eax, [ebp - 0x110]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push 0x4b892c
lea edx, [ebp - 0x110]
lea ecx, [ebp - 0x128]
call fcn.00415e1e
pop ecx
pop ecx
push edi
push 0
lea ecx, [ebp - 0x128]
call fcn.0041321d
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea ecx, [ebp - 0x128]
mov esi, eax
call fcn.004134bc
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045c170
leave
ret

Function at 0x4160e4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
mov eax, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
mov edi, edx
mov dword [ebp - 8], ebx
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 4], eax
test eax, eax
je 0x4161ae
push esi
push eax
call fcn.00461fe9
mov esi, eax
lea eax, [ebp - 0x48]
push 0x34
push ebx
push eax
mov dword [ebp - 0x10], esi
call fcn.0045e560
add esp, 0x10
test esi, esi
je 0x41617d
push esi
push dword [ebp - 4]
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41617d
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x4b894c
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41617d
mov esi, dword [ebp - 4]
lea edi, [ebp - 0x48]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x48], 0xfeef04bd
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
sete al
mov bl, al
push esi
call fcn.00461d54
pop ecx
pop esi
test bl, bl
je 0x4161ae
mov ecx, dword [ebp - 0x40]
mov eax, ecx
shr eax, 0x10
mov dword [edi], eax
movzx eax, cx
mov ecx, dword [ebp - 0x3c]
mov dword [edi + 4], eax
mov eax, ecx
shr eax, 0x10
mov dword [edi + 8], eax
movzx eax, cx
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x4161b0
xor al, al
pop edi
pop ebx
leave
ret