joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472046
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4d2ff0], 0
push esi
push edi
mov esi, 0x4d2630
jne 0x472069
push 0
call fcn.0042e4e8
pop ecx
mov ecx, eax
call fcn.00472006
mov dword [0x4d06e0], 0x270
mov edx, 0xe3
mov dword [0x4d2ff4], esi
mov eax, dword [esi + 4]
mov ecx, dword [esi]
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, dword [esi]
shr ecx, 1
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi + 0x634]
mov dword [esi], ecx
add esi, 4
sub edx, 1
jne 0x47207e
mov eax, dword [esi]
mov dword [ebp - 4], 0x18c
mov edi, dword [esi + 4]
mov ecx, eax
xor ecx, edi
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edi
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edi
xor ecx, dword [esi - 0x38c]
sub dword [ebp - 4], 1
mov dword [esi], ecx
lea esi, [esi + 4]
jne 0x4720b8
mov eax, dword [0x4d2630]
mov ecx, edi
xor ecx, eax
and al, 1
and ecx, 0x7ffffffe
movzx eax, al
xor ecx, edi
shr ecx, 1
neg eax
pop edi
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
xor ecx, dword [esi - 0x38c]
mov dword [esi], ecx
pop esi
leave
ret

Function at 0x472557
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 1
jne 0x47257c
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea eax, [ebp - 8]
push eax
call fcn.00420e20
add esp, 0xc
jmp 0x47258f
push dword [esi + 0x1c]
lea eax, [ebp - 8]
push 8
push 1
push eax
call fcn.0042e8c4
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx eax, byte [ebp - 3]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, eax
mov byte [ebp - 4], 0
movzx eax, byte [ebp - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 8]
push 0x4c6a84
mov dword [eax], ecx
lea eax, [ebp - 8]
push eax
call fcn.0042e980
neg eax
pop ecx
pop ecx
sbb eax, eax
neg eax
pop esi
leave
ret 4

Function at 0x472693
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, 0x10000
mov ecx, dword [esi + 0x464]
test ecx, ecx
je 0x4726a9
cmp ecx, eax
jne 0x4726c5
push dword [esi + 0x1c]
push eax
push 1
push dword [esi + 0x45c]
call fcn.0042e8c4
add esp, 0x10
xor ecx, ecx
mov dword [esi + 0x464], ecx
mov eax, dword [esi + 0x45c]
mov al, byte [ecx + eax]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
ret

Function at 0x4726d7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x460]
mov esi, dword [edi + 0x458]
mov byte [esi + edx], al
mov eax, 0x10000
inc dword [edi + 0x460]
cmp dword [edi + 0x460], eax
jne 0x47271e
push dword [edi + 0x20]
push eax
push 1
push dword [edi + 0x458]
call fcn.0042dbb3
add esp, 0x10
and dword [edi + 0x460], 0
pop edi
pop esi
pop ebp
ret 4
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a2790]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e8b
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x7a2790]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x7a2790], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x402f1b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f48
mov ecx, dword [0x7a2738]
push edi
add eax, ecx
push edi
push eax
mov dword [0x795884], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403046
cmp eax, edi
jl 0x40303f
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x40303c
cmp dword [ebp - 4], esi
jne 0x40303c
push dword [ebp + 8]
add dword [0x795884], esi
call fcn.00403046
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40303f
cmp dword [ebp + 0x10], edi
jne 0x40300b
cmp dword [ebp + 8], edi
jle 0x403037
mov esi, 0x791880
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fbb
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40303c
cmp edi, dword [ebp - 4]
jne 0x40303c
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403007
cmp dword [ebp + 0x14], edi
jne 0x403007
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x795884], eax
cmp dword [ebp + 8], 0
jg 0x402fae
jmp 0x403037
push 0xfffffffffffffffe
jmp 0x40303e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403016
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40303c
mov eax, dword [ebp - 4]
add dword [0x795884], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40303f
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403046
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x795884]
sub esi, dword [0x40afb0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x7a26ec], eax
jle 0x4031b0
push dword [0x79d894]
call fcn.004031f4
push ebx
push ebx
push dword [0x40afb0]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x79d890], esi
mov dword [0x795880], ebx
mov ebp, 0x789880
mov eax, dword [0x795888]
mov edi, 0x4000
sub eax, dword [0x79d894]
cmp eax, edi
jg 0x4030bb
mov edi, eax
mov esi, 0x791880
push edi
push esi
call fcn.004031c2
test eax, eax
je 0x4031a2
add dword [0x79d894], edi
mov dword [0x40afb8], esi
mov dword [0x40afbc], edi
cmp dword [0x7a26f0], ebx
je 0x403112
cmp dword [0x7a2780], ebx
jne 0x403112
mov eax, dword [0x79d890]
push ebx
sub eax, dword [0x795884]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afb0]
mov dword [0x795880], eax
call fcn.00402bd3
pop ecx
push 0x40afb8
mov dword [0x40afc0], ebp
mov dword [0x40afc4], 0x8000
call fcn.00405f65
test eax, eax
jl 0x4031ab
mov esi, dword [0x40afc0]
sub esi, ebp
je 0x40316c
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a7
cmp esi, dword [esp + 0x10]
jne 0x4031a7
add dword [0x40afb0], esi
cmp dword [0x40afbc], ebx
jne 0x4030e1
jmp 0x403178
cmp dword [0x40afbc], ebx
jne 0x4031ab
cmp edi, ebx
je 0x4031ab
mov eax, dword [0x795884]
mov ecx, eax
sub ecx, dword [0x40afb0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030a5
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031b0
or eax, 0xffffffff
jmp 0x4031ba
push 0xfffffffffffffffe
jmp 0x4031ad
push 0xfffffffffffffffd
pop eax
jmp 0x4031ba
push 1
call fcn.00402bd3
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4053c9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a0ce8], 0x44
push eax
xor eax, eax
push 0x7a0ce8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405404
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40548e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040573d
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054c2
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x7a2768], eax
jmp 0x405656
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4054e0
test eax, eax
je 0x405601
test byte [ebp + 0xc], 2
je 0x405601
mov esi, 0x79fce8
push edi
push esi
call fcn.00405b69
test ebx, ebx
je 0x4054fd
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405503
push edi
call fcn.004056a3
cmp byte [edi], 0
jne 0x405511
cmp byte [0x79fce8], 0x5c
jne 0x40551c
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4055f7
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405687
cmp byte [eax], 0
je 0x405562
cmp byte [ebp - 0x18], 0
je 0x405562
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405578
mov al, byte [esi + 1]
test al, al
je 0x4055d6
cmp al, 0x2e
jne 0x405578
cmp byte [esi + 2], 0
je 0x4055d6
push esi
push ebx
call fcn.00405b69
test byte [ebp - 0x148], 0x10
je 0x40559d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055d6
push dword [ebp + 0xc]
push edi
call fcn.0040548e
jmp 0x4055d6
push edi
call fcn.00405821
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4055ce
test byte [ebp + 0xc], 4
je 0x4055c6
push edi
push 0xfffffffffffffff1
call fcn.00404f07
push 0
push edi
call fcn.004058b7
jmp 0x4055d6
inc dword [0x7a2768]
jmp 0x4055d6
push edi
push 0xfffffffffffffff2
call fcn.00404f07
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405540
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405601
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405656
cmp dword [ebp - 8], esi
jne 0x405616
inc dword [0x7a2768]
jmp 0x405656
push edi
call fcn.00405e64
test eax, eax
je 0x405656
push edi
call fcn.0040565c
push edi
call fcn.00405821
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40564e
test byte [ebp + 0xc], 4
je 0x40560e
push edi
push 0xfffffffffffffff1
call fcn.00404f07
push esi
push edi
call fcn.004058b7
jmp 0x405656
push edi
push 0xffffffffffffffe5
call fcn.00404f07
pop edi
pop esi
leave
ret 8
Function at 0x40573d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a00e8
push esi
call fcn.00405b69
push esi
call fcn.004056f0
mov edi, eax
test edi, edi
jne 0x40575e
xor eax, eax
jmp 0x4057b0
push edi
call fcn.00405dcb
test byte [0x7a26f8], 0x80
je 0x405777
mov al, byte [edi]
test al, al
je 0x40575a
cmp al, 0x5c
je 0x40575a
sub edi, esi
jmp 0x40578f
call fcn.00405e64
test eax, eax
je 0x405789
test byte [eax], 0x10
je 0x40575a
push esi
call fcn.004056a3
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40577b
call fcn.0040565c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405821
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40583d
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405840
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40586f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4058b3
test edi, edi
jne 0x40587a
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058ad
Function at 0x4058b7
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405e8b
test eax, eax
mov esi, dword [esp + 0x18]
je 0x4058db
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405a14
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a0e70], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a0e70
je 0x40591f
push 1
push 0
push esi
call fcn.00405840
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405a1a
cmp eax, edi
jg 0x405a1a
mov esi, 0x7a08e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405a1a
cmp eax, edi
jg 0x405a1a
push esi
push ebp
push str._s_s_r_n
push 0x7a04e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a26f0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b8b
push 4
push 0xc0000000
push esi
call fcn.00405840
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405a14
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a0d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405a0d
cmp edi, dword [esp + 0x18]
jne 0x405a0d
push str._Rename__r_n
push esi
call fcn.004057b5
test eax, eax
jne 0x405a21
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405b69
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a04e8
push eax
call fcn.00405801
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a2770]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409350
push eax
call fcn.004057b5
test eax, eax
je 0x4059d8
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405a48
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405a3d
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x4059da
Function at 0x405a50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ac1
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ab0
cmp dword [ebp + 0x14], 1
je 0x405ab2
cmp dword [ebp + 0x14], 2
je 0x405ab2
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405ef7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a1274], 0
push esi
jne 0x405f2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f08
mov dword [ecx*4 + 0x7a1270], eax
inc ecx
cmp ecx, 0x100
jl 0x405f03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a1270]
xor eax, esi
inc ecx
dec edx
jne 0x405f41
pop edi
not eax
pop esi
ret 0xc

Function at 0x41fd10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x41fd32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41fd39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41fd28
mov eax, 1
add ebx, ebx
jne 0x41fd4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41fd40
jne 0x41fd5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd40
xor ecx, ecx
sub eax, 3
jb 0x41fd70
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41fde2
mov ebp, eax
add ebx, ebx
jne 0x41fd7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41fd88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41fdac
inc ecx
add ebx, ebx
jne 0x41fd98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41fd8d
jne 0x41fda9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41fd8d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41fdcc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41fdbd
jmp 0x41fd2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41fdcc
add edi, ecx
jmp 0x41fd2e
pop esi
mov edi, esi
mov ecx, 0x1a3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41fdea
cmp byte [edi], 3
jne 0x41fdea
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 0x41fdef
lea edi, [esi + 0x1d000]
mov eax, dword [edi]
or eax, eax
je 0x41fe67
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2064c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x20688]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41fe1c
mov ecx, edi
jns 0x41fe4b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2068c]
or eax, eax
je 0x41fe61
mov dword [ebx], eax
add ebx, 4
jmp 0x41fe39
call dword [esi + 0x20690]
popal
jmp 0x40215c
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401d70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00403210
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret

Function at 0x402470
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
cmp dword [ebp + 0xc], 0
jne 0x402483
xor al, al
jmp 0x4024b5
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402230
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4024b3
xor eax, eax
cmp dword [ebp - 4], 0
setne al
mov ecx, dword [ebp + 0xc]
mov byte [ecx], al
mov al, 1
jmp 0x4024b5
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x414831
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44eca0]
jne 0x41483b
repz ret
jmp fcn.0041a6db

Function at 0x424cb0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041ba9f
and dword [ebp - 4], 0
cmp dword [0x452c28], 0
mov ebx, eax
jne 0x424d61
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424e12
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424e12
push eax
call fcn.0041ba2d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x452c28], eax
call esi
push eax
call fcn.0041ba2d
mov dword [esp], 0x43fb18
push edi
mov dword [0x452c2c], eax
call esi
push eax
call fcn.0041ba2d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x452c30], eax
call esi
push eax
call fcn.0041ba2d
pop ecx
mov dword [0x452c38], eax
test eax, eax
je 0x424d61
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041ba2d
pop ecx
mov dword [0x452c34], eax
mov eax, dword [0x452c34]
cmp eax, ebx
je 0x424db9
cmp dword [0x452c38], ebx
je 0x424db9
push eax
call fcn.0041baa8
push dword [0x452c38]
mov esi, eax
call fcn.0041baa8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424db9
test edi, edi
je 0x424db9
call esi
test eax, eax
je 0x424db0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424db0
test byte [ebp - 0xc], 1
jne 0x424db9
or dword [ebp + 0x10], 0x200000
jmp 0x424df2
mov eax, dword [0x452c2c]
cmp eax, ebx
je 0x424df2
push eax
call fcn.0041baa8
pop ecx
test eax, eax
je 0x424df2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424df2
mov eax, dword [0x452c30]
cmp eax, ebx
je 0x424df2
push eax
call fcn.0041baa8
pop ecx
test eax, eax
je 0x424df2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x452c28]
call fcn.0041baa8
pop ecx
test eax, eax
je 0x424e12
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424e14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret