joyce8/EMBER2024-capa huggingface dataset:
Function at 0x506360
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [ebp + 0xc]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
movd eax, xmm0
movups xmmword [ebp - 0x60], xmm1
and al, 0xf8
psrldq xmm1, 0xc
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x70], al
movd eax, xmm1
shr eax, 0x18
and al, 0x3f
or al, 0x40
mov byte [ebp - 0x51], al
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00509da0
mov ecx, dword [ebp - 0xe8]
mov edx, dword [ebp - 0xc0]
lea eax, [ecx + edx]
sub edx, ecx
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x50], edx
mov edx, dword [ebp - 0xbc]
mov dword [ebp - 0x28], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xe0]
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0xb8]
mov dword [ebp - 0x24], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x48], edx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0x20], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x44], edx
mov edx, dword [ebp - 0xb0]
mov dword [ebp - 0x1c], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xd4]
mov dword [ebp - 0x40], edx
mov edx, dword [ebp - 0xac]
mov dword [ebp - 0x18], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0xa8]
mov dword [ebp - 0x14], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xcc]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0x10], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xc8]
mov dword [ebp - 0x34], edx
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xc], eax
lea eax, [edx + ecx]
sub edx, ecx
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x9c]
mov dword [ebp - 8], eax
lea eax, [edx + ecx]
sub edx, ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x2c], edx
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.00506a40
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x28]
push eax
push eax
call fcn.00506c70
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.00508390
lea eax, [ebp - 0x70]
push 0x20
push eax
call fcn.00456130
add esp, 0x2c
mov esp, ebp
pop ebp
ret
Function at 0x52f460
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [edx + 4]
mov esi, edx
push edi
mov edi, dword [ebp + 0x10]
cmp ecx, dword [edi + 4]
cmovge esi, edi
cmovge edi, edx
mov dword [ebp + 0xc], esi
push dword [edi + 4]
push ebx
call fcn.004a0130
add esp, 8
test eax, eax
jne 0x52f495
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
cmp dword [esi + 4], eax
jle 0x52f4b8
nop dword [eax]
mov ecx, dword [esi]
mov edx, dword [edi]
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], esi
inc eax
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
jl 0x52f4a0
mov ecx, dword [edi + 4]
cmp eax, ecx
jge 0x52f4d2
nop
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
mov ecx, dword [edi + 4]
cmp eax, ecx
jl 0x52f4c0
push ebx
mov dword [ebx + 4], ecx
call fcn.0049ffb0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5303d0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
xor edi, edi
call fcn.004c8a40
push esi
call fcn.004c87f0
mov esi, eax
add esp, 8
test esi, esi
je 0x5305b3
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
add eax, eax
push eax
push esi
call fcn.004a0130
add esp, 8
test eax, eax
je 0x5305b2
mov eax, dword [ebx + 4]
lea ecx, [eax - 1]
test ecx, ecx
js 0x53058e
mov edi, ecx
nop
mov eax, dword [ebx]
mov edx, dword [eax + edi*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + edi*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + edi*8], edx
sub edi, 1
jns 0x530420
mov eax, dword [ebx + 4]
xor edi, edi
add eax, eax
push esi
mov dword [esi + 4], eax
call fcn.0049ffb0
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.0052f4f0
add esp, 0x10
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push dword [ebp + 0x14]
call fcn.004c86f0
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x5358d0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ebx
mov edi, dword [edi]
mov al, byte [edi]
lea ecx, [eax - 0x30]
cmp cl, 9
ja 0x53593e
xor edx, edx
nop dword [eax]
lea ecx, [edx - 0x30]
movzx eax, al
add ecx, eax
inc edi
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, 0x66666667
imul esi
sar edx, 2
mov esi, edx
shr esi, 0x1f
add esi, edx
lea edx, [ecx + ecx*4]
add edx, edx
cmp edx, ebx
jg 0x535926
test esi, esi
je 0x535926
mov al, byte [edi]
cmp al, 0x30
jb 0x535926
cmp al, 0x39
jbe 0x5358f0
cmp ecx, dword [ebp + 0x10]
jl 0x53593e
cmp ecx, ebx
jg 0x53593e
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov eax, 1
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x5365e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, eax
mov ecx, dword [ebp + 0xc]
neg edx
and edx, 3
dec edx
cmp edx, 3
ja case.default.0x5365f6
jmp dword [edx*4 + 0x536698]
mov dl, byte [eax]
cmp dl, cl
je 0x536695
test dl, dl
je 0x536695
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x536695
test dl, dl
je 0x536695
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x536695
test dl, dl
je 0x536695
inc eax
mov dl, byte [eax]
cmp dl, cl
je 0x536695
test dl, dl
je 0x536695
inc eax
mov edx, dword [eax]
push esi
movzx ecx, cl
push edi
imul edi, ecx, 0x1010101
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
jne 0x536688
mov edx, dword [eax + 4]
add eax, 4
mov ecx, edx
xor ecx, edi
lea esi, [ecx - 0x1010101]
not ecx
and esi, ecx
lea ecx, [edx - 0x1010101]
not edx
and ecx, edx
or esi, ecx
and esi, 0x80808080
je 0x536660
bsf ecx, esi
pop edi
mov dword [ebp + 8], ecx
sar ecx, 3
add eax, ecx
pop esi
pop ebp
ret

Function at 0x539c10
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push 1
call fcn.0053c180
push dword [ebp + 8]
push 0
mov esi, dword [eax]
call fcn.0053c180
add esp, 0x10
push 1
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
test eax, eax
je 0x539c41
xor eax, eax
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0053fc9c
add esp, 4
or eax, 0xffffffff
pop ebp
ret
Function at 0x53a1f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push dword [ebp + 8]
push 0
call fcn.0053c180
push dword [eax]
call fcn.005531ef
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x53a2f3
mov ecx, dword [0x5fd93c]
not ecx
and ecx, dword [ebp + 0xc]
test cl, 2
je 0x53a2f3
mov dword [ebp - 0xc], eax
xorps xmm0, xmm0
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 1
lea eax, [ebp - 0x14]
mov word [ebp - 0x10], 0x100
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x53a2c2
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10000000
push eax
push 1
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 5
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x53a2c2
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0053c2f0
add esp, 8
push esi
push dword [ebp - 8]
push esi
push esi
push 4
push 1
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
lea eax, [ebp - 0xc]
push eax
call fcn.0053c2c0
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x53a2e3
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
test eax, eax
je 0x53a2f1
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x53a450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00552085
Function at 0x53a460
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call fcn.0053c180
add esp, 8
mov ebx, dword [eax]
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.00539b90
neg eax
push ebx
sbb esi, esi
inc esi
call dword [ebp + 8]
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jne 0x53a51d
test esi, esi
jne 0x53a51d
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x53a51a
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
add esi, 0x28f0
mov eax, dword [esi]
test eax, eax
jne 0x53a4f1
call fcn.0053fcd2
cmp dword [eax], 5
jne 0x53a51a
call edi
sub eax, dword [ebp - 4]
cmp eax, 2
ja 0x53a524
lea eax, [ebp - 0x28]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
je 0x53a4e6
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53a9b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x53a9de
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53a9d3
call fcn.0053fcd2
mov dword [eax], 2
xor eax, eax
pop ebx
pop ebp
ret
push ebx
push 0
call fcn.0053c180
add esp, 8
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call fcn.00539b90
add esp, 4
cmp eax, 0xffffffff
je 0x53a9d9
test al, 0x10
jne 0x53aa25
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53aa1a
call fcn.0053fcd2
mov dword [eax], 0x14
xor eax, eax
pop ebx
pop ebp
ret
push esi
push edi
push 1
push 0x1c
call fcn.0053fce5
push 1
push 0x128
mov edi, eax
call fcn.0053fce5
push ebx
mov esi, eax
call fcn.0053aea0
add esp, 0x14
mov dword [esi], eax
mov dword [edi], esi
mov eax, edi
mov dword [edi + 8], 0xffffffff
mov dword [edi + 0xc], 0x128
mov dword [edi + 0x10], 0x128
mov dword [edi + 4], 8
mov dword [edi + 0x14], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x53aa80
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, 0xffffffff
jne 0x53ab4d
mov ecx, dword [ebx]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x53aaa7
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53aac0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x2f
je 0x53aaf3
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53aae0
mov ax, word [0x56e7f8]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53ab00
mov ax, word [0x56d8d0]
mov word [edi], ax
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.0053c180
add esp, 8
lea ecx, [ebp - 0x358]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call fcn.00539b90
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x53aba2
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call fcn.00539b90
add esp, 4
test eax, eax
jne 0x53aba2
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53ab7f
call fcn.0053fcd2
cmp dword [eax], 0x12
jne 0x53ab99
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53ab93
call fcn.0053fcd2
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x358], 0x10
mov dword [ebx + 8], 0
sete al
mov dword [ebx + 0xc], 0
lea eax, [eax*4 + 4]
mov byte [ebx + 0x120], al
mov eax, pe_nt_image_headers32
mov word [ebx + 0x10], ax
lea eax, [ebp - 0x32c]
push eax
push 0
call fcn.0053be90
push 0x104
lea esi, [ebx + 0x14]
push dword [eax]
push esi
call fcn.0053c0e0
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x53abf4
mov eax, dword fs:[0x2c]
sub esi, ecx
mov word [ebx + 0x12], si
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53ac18
call fcn.0053fcd2
pop edi
mov dword [eax], 0
lea eax, [ebx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53b150
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push 0
push 0x2000080
push 3
push 0
push 3
push 0x100
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.0053c450
push eax
call fcn.00539bc0
add esp, 0x20
mov dword [ebp - 4], eax
test eax, eax
je 0x53b1de
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
test esi, esi
jne 0x53b1a4
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x53b1ba
push esi
call fcn.0053c660
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 8]
push eax
call fcn.0053c660
add esp, 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push eax
call fcn.00539b90
add esp, 4
xor ecx, ecx
test eax, eax
cmovne edi, ecx
pop esi
lea eax, [ebp - 4]
push eax
call fcn.0053c420
add esp, 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x53ba90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
xor esi, esi
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
call fcn.00539bc0
mov edi, eax
add esp, 4
test edi, edi
jne 0x53bab9
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x53bb11
cmp eax, 9
je 0x53baf7
cmp eax, 0x16
je 0x53baf7
mov eax, dword fs:[0x2c]
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53bae1
call fcn.0053fcd2
push edi
mov dword [eax], 0x16
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push eax
call fcn.00539b90
or ecx, 0xffffffff
add esp, 4
test eax, eax
cmove esi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x53bd40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
mov edx, dword [eax]
add edx, 0x2cb4
push edi
mov dword [ebp - 4], edx
lea ecx, [ebx + 1]
xor edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x53bd64
push dword [edx]
sub ebx, ecx
call fcn.0053fcf0
lea eax, [ebx*2 + 2]
push eax
call fcn.0053fcf5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [eax], ebx
mov cl, byte [esi]
test cl, cl
je 0x53bdaf
lea edx, [esi + 1]
cmp cl, 0xc0
jae 0x53bdce
movzx eax, cl
mov word [ebx + edi*2], ax
inc edi
mov esi, edx
mov cl, byte [esi]
test cl, cl
jne 0x53bd94
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [ebx + edi*2], cx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0xe0
jae 0x53be1c
mov dl, byte [edx]
lea eax, [edi + 1]
mov dword [ebp - 8], eax
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53be09
and cl, 0x1f
and dl, 0x3f
movzx ecx, cl
shl cx, 6
movzx eax, dl
or cx, ax
movzx eax, cx
mov ecx, 2
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53bda6
movzx eax, cl
mov ecx, 1
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53bda6
cmp cl, 0xf0
jae 0x53bda4
mov dl, byte [edx]
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53be6d
mov bl, byte [esi + 2]
mov al, bl
and al, 0xc0
cmp al, 0x80
jne 0x53be6a
and dl, 0x3f
movzx eax, cl
shl ax, 6
and bl, 0x3f
movzx edx, dl
or dx, ax
movzx eax, bl
mov ebx, dword [ebp + 8]
shl dx, 6
or dx, ax
mov eax, 3
movzx ecx, dx
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53bda6
mov ebx, dword [ebp + 8]
movzx ecx, cl
mov eax, 1
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53bda6

Function at 0x53fad9
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5dd3b4
push 0x5dd3ac
push 0x5dd3b4
push 0
call fcn.0053fa52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53fb0b
push dword [ebp + 8]
mov ecx, esi
call fcn.0053d7d6
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x53fb4d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5dd3e4
push 0x5dd3dc
push 0x5dd3e4
push 3
call fcn.0053fa52
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x53fb81
mov ecx, esi
call fcn.0053d7d6
call esi
jmp 0x53fb87
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x555e2a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00555ca9

Function at 0x55830a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055820f

Function at 0x558e2f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055879d
Function at 0x558e3a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005589d8

Function at 0x55f3a0
Capabilities:
Encode data using xor

Disassembly:
xor ecx, dword [0x5eeb82]
mov ecx, 0x409c7b54
xor eax, esi
neg edx
ror eax, 4
shl ebx, 4
mov eax, 0x44723c95
add edx, esi
or ebx, ecx
shr ebx, 0x18
sub eax, dword [0x5ef236]
rol ebx, 0x1e
shl ebx, 0x17
shr ebx, 8
xor edi, ebx
shl eax, 0x11
add eax, dword [0x5f9ba0]
xor esi, 0xce823764
sub ebx, dword [0x5ea869]
ror esi, 6
add esi, dword [0x5ebd76]
xor ebx, 0xc4679c82
dec ecx
jne 0x55f3ab
mov ecx, 0x6779f96e
call fcn.004561b6
xchg edi, edx
mov edx, 0x6f670eac
or esi, dword [0x5eeffc]
shl esi, 0xe
call fcn.00500c51
shl eax, 0xe
shr eax, 0x12
xchg edx, esi
test dword [0x5f7a18], 0x47dbbed
jp 0x55f433
xor edi, dword [0x5eed4c]
neg eax
xor esi, 0xef74515
dec ecx
jne 0x55f3ff
dec edx
not esi
shr eax, 0xc
rol edi, 0x18
mov ecx, 0x507c7b3e
test dword [0x5ee146], ebx
jle 0x55f45b
cmp ebp, 0xdf7af714
jns 0x55f45f
test esi, ebx
jl 0x55f466
mov edi, 0xd00fbf36
xchg ebx, edx
ror edx, 0x12
sub edx, esp
dec edx
sub edi, edx
shl ebx, 0xd
dec ecx
jne 0x55f44d
test esp, 0x39e85a05
je 0x55f480
dec esi
mov edx, esp
and edi, 0xc960799
add edx, 0x299cfcc8
mov esi, 0xcac80b9c
call fcn.0053d56d
test esi, 0x2fe1f002
jb 0x55f4a5
call fcn.0045586e
mov ebx, edi
sub edx, 0x4e3c0419
add edx, 0xece00b21
inc esi
dec edi
xor ebx, 0x51da6aa
shl ecx, 0x1d
mov eax, 0xbd395ab4
sub edi, ebx
xor ebx, 0xbd22d217
ror edx, 0x1d
call fcn.004f6583
xor esi, 0x2040caf
dec ecx
add ebx, 0xb7efae62
call fcn.0044a423
sub ecx, 0x6947dd69
not ebx
sub eax, ebp
neg edx
rol eax, 8
add edx, 0x17577f75
xchg ebx, eax
not edi
invalid
stosb byte es:[edi], al

Function at 0x562db0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
cmp ecx, 0xffffffff
jne 0x562dce
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x562dc4
sub ecx, esi
pop esi
push ecx
push edx
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 8]
call fcn.00562b40
add esp, 0x10
test eax, eax
je 0x562df4
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push 1
push eax
call fcn.00546d14
add esp, 0x10
pop ebp
ret

Function at 0x562fc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.wbEe
push dword [ebp + 8]
call fcn.004221a0
mov esi, eax
add esp, 8
mov dword [ebp - 8], esi
test esi, esi
je 0x56302a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x562ffb
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x562ff1
sub ecx, edi
pop edi
push ecx
push edx
lea eax, [ebp - 4]
push eax
push 0
call fcn.00562b40
add esp, 0x10
test eax, eax
je 0x56301e
push esi
push dword [ebp - 4]
push 1
push eax
call fcn.00546d14
add esp, 0x10
lea eax, [ebp - 8]
push eax
call fcn.00422180
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x49021583
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x6867632
test eax, eax
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219